-
Notifications
You must be signed in to change notification settings - Fork 389
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
extcodesize returns wrong value on contracts being constructed #453
Comments
i believe this is more of an hevm regression than an echidna issue in particular, we have to run constructors as a |
jk i think we can get around this by manually setting vm & env . contracts . at addr ?= initialContract (InitCode bc)
loadContract addr
vm & state . code .= bc |
check out the PR, i am almost certain it is the right thing to do |
elopez
added a commit
to elopez/echidna
that referenced
this issue
Jun 4, 2020
elopez
added a commit
to elopez/echidna
that referenced
this issue
Jun 4, 2020
incertia
pushed a commit
that referenced
this issue
Jun 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
extcodesize on a contract being constructed should return 0, but on echidna it returns non-0. Here's a testcase:
The text was updated successfully, but these errors were encountered: