-
Notifications
You must be signed in to change notification settings - Fork 179
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
Report proper computation for EVM.encodeABI
& EVM.decodeABI
methods
#5146
Report proper computation for EVM.encodeABI
& EVM.decodeABI
methods
#5146
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5146 +/- ##
==========================================
- Coverage 56.43% 49.51% -6.92%
==========================================
Files 981 185 -796
Lines 93068 15605 -77463
==========================================
- Hits 52519 7727 -44792
+ Misses 36661 7355 -29306
+ Partials 3888 523 -3365
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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!
32e6b6f
to
7863c84
Compare
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.
Great work!
a952d66
to
dc6e35d
Compare
dc6e35d
to
b01b1f3
Compare
Follow-up for: #4937
EVM.encodeABI
proactively calculates the length of the[UInt8]
resulting array, based on the[AnyStruct]
array of Cadence values. Dynamic & static variables are accounted for separately.EVM.decodeABI
is the length of the[UInt8]
array that is passed in.Decoding a
[UInt8]
array that was previously encoded withEVM.encodeABI
, takes up the exact same computation as the encoding.