-
Notifications
You must be signed in to change notification settings - Fork 332
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
extcodecopy/hash of zero size #569
Conversation
I'm a little confused by this test because it seems to not track with the definition of EXTCODEHASH as provided here: https://eips.ethereum.org/EIPS/eip-1052 According to EIP 1052, if the account does not have code then EXTCODEHASH should return It seems to me that either this test has incorrect expected output, or else the EIP needs to be updated to clarify that an account with no code, 0 balance, 0 nonce, and empty storage counts as not existing for the purposes of EXTCODEHASH. |
Storage position 0x50 has contract code in it. Did you mean 0x32 ? It has 0 |
Sorry I meant decimal 50 (0x32), not 0x50. |
@dwightguth Aleth returning 0 for an empty account comes from the following rule of EIP-158
|
@dwightguth I ran into the same problem with this newest test release in trinity. I can confirm that both geth and parity (and now trinity) treat the empty account as if it doesn't exist, in accordance with EIP-158.
I agree that the EIP should be updated, this is confusing |
KEVM now also has the same behavior of treating this in accordance with eip 161. It seems like the best path forward at this point is to update the spec as you say. |
No description provided.