Add EIP-2565 support#138
Conversation
a377723 to
76e55d5
Compare
5c4027c to
592eff2
Compare
birchmd
left a comment
There was a problem hiding this comment.
Actually, sorry, I found a small mistake, undoing my approve for now
birchmd
left a comment
There was a problem hiding this comment.
Thanks for pushing the new changes! There are still a couple issues with the implementation I think. Maybe we need tests that use really big values for the inputs (bigger than could fit in a U256) because I think the issues would only appear from very large inputs.
Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Michael Birch <michael@near.org>
5fdb031 to
58a913a
Compare
|
@birchmd I'll finish the rest up once I get back from some sleep. Exhausted right now. Thanks for the review. |
Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Michael Birch <michael@near.org>
There was a problem hiding this comment.
I made several changes around overflow handling as well wrote some functions for dealing with the slices to avoid index out of bounds panics (this behaviour is the same as geth). I also added some tests to make sure it all works. Should be good to go now.
|
Thanks for the clean up. |
|
@joshuajbouw I'd want to merge this to |
3ce740d to
4fcf44f
Compare
* Implement EIP-2565 support. (#138) * Fix CI debug pipeline. (#145) * Enable `meta_call` only with feature flag. (#146) * Add `mainnet`, `testnet`, and `betanet` feature flags. (#147) * Prohibit static calls in exit precompiles. (#148) * Fix `clippy::unnecessary_unwrap`. (#149) * Fix all Clippy warnings. (#150) * Create the `ExitToNear` receiver account if it does not exist. (#151) Co-authored-by: Joshua J. Bouw <joshua@aurora.dev> Co-authored-by: Kirill <kirill@aurora.dev> Co-authored-by: Marcelo Fornet <marcelo@aurora.dev> Co-authored-by: Michael Birch <michael@aurora.dev>
This is EIP 1 out of 4 for the Berlin hardfork.
For this one, it's the
modexpgas cost changes. For more details, see the linked reference below.Reference: https://eips.ethereum.org/EIPS/eip-2565