Skip to content

Commit

Permalink
Ignore failed contract events in diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Feb 9, 2024
1 parent 9b91ec0 commit 40c24db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public virtual Task Run(JsonElement block)
{
opsCount++;
if (content.Required("metadata").TryGetProperty("internal_operation_results", out var internalContents))
opsCount += internalContents.Count();
opsCount += internalContents.EnumerateArray().Count(x => x.RequiredString("kind") != "event" || x.Required("result").RequiredString("status") == "applied");
}
}
}
Expand Down

0 comments on commit 40c24db

Please sign in to comment.