-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FVM] Refactor event emission code #4982
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
f466577
to
e855f73
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4982 +/- ##
==========================================
- Coverage 56.30% 56.21% -0.10%
==========================================
Files 963 962 -1
Lines 90184 89783 -401
==========================================
- Hits 50776 50468 -308
+ Misses 35610 35549 -61
+ Partials 3798 3766 -32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Just unified the event emission code a bit.
There is one point that requires special attention. The event size reported when you emit a cadence event is the payload size, however using the EmitFlowEvent method used the event type + payload size for the size.
I think the correct behaviour is the original one (just using the payload size) as the payload should contain the type as well.