Skip to content
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

hevm: implement subroutines #396

Closed
wants to merge 7 commits into from
Closed

hevm: implement subroutines #396

wants to merge 7 commits into from

Conversation

d-xo
Copy link
Contributor

@d-xo d-xo commented Jun 15, 2020

Implements subroutines based on the spec at: https://eips.ethereum.org/EIPS/eip-2315

This code passes all the tests here: https://github.com/ethereum/tests/tree/develop/BlockchainTests/GeneralStateTests/stSubroutine

For some reason I couldn't get hevm compliance to run these tests (they work fine with hevm bc-test however....), so I didn't update the commit for ethereum/tests in release.nix yet @MrChico @livnev do you have any ideas?

I'm also wondering if we want to add some visualization of the current state of the return_stack to hevm in some future PR?

I’m also not sure if it makes sense to reuse the BadJumpDestination and StackLimitExceeded errors or make new ones for the subroutines context?

@d-xo d-xo requested review from livnev and MrChico June 15, 2020 14:08
src/hevm/src/EVM.hs Outdated Show resolved Hide resolved
@d-xo
Copy link
Contributor Author

d-xo commented Jun 15, 2020

CI failed due to #395 😢

@MrChico
Copy link
Member

MrChico commented Jun 15, 2020

there are some other proposed changes to this EIP that have been discussed here, not sure what the current status is

@d-xo
Copy link
Contributor Author

d-xo commented Jun 15, 2020

rebased on master

@d-xo
Copy link
Contributor Author

d-xo commented Jun 15, 2020

there are some other proposed changes to this EIP that have been discussed here, not sure what the current status is

They seem to be somewhat controversial: ethereum/EIPs#2663

@d-xo
Copy link
Contributor Author

d-xo commented Mar 8, 2021

subroutines are dropped from berlin: ethereum/pm#263

@d-xo d-xo closed this Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants