-
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
Add the EVM.encodeABIWithSignature
and EVM.decodeABIWithSignature
functions
#5189
Add the EVM.encodeABIWithSignature
and EVM.decodeABIWithSignature
functions
#5189
Conversation
cc @turbolent @sisyphusSmiling I am not able to add you as reviewers. |
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.
Method interfaces & Cadence implementation LGTM!
98117ae
to
5279398
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.
Looks good!
Implementing this in Cadence is nice, but also has a bit of an overhead compared to a native implementation in Go. For now this should not be a problem, but this might be worth optimizing in the future if needed.
Sounds good 👍 It shouldn't take much effort to implement them natively, if we decide to optimize things. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5189 +/- ##
==========================================
- Coverage 56.36% 56.34% -0.02%
==========================================
Files 994 994
Lines 94848 94848
==========================================
- Hits 53461 53443 -18
- Misses 37416 37434 +18
Partials 3971 3971
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
It seems like one of the tests fails, indicating the state commitment changes. I think this is because the EVM contract changed, and as it is deployed when bootstrapping, it influences the state commitment? @ramtinms Can you please confirm? |
Ah, I see, I wasn't aware of that. Good point 👍 |
777e121
to
5279398
Compare
…ctions These functions can be used to ABI encode/decode function calls, along with their arguments.
5279398
to
0bcb7c9
Compare
These functions can be used to
ABI
encode/decode function calls, along with their arguments.Example usage: