-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(levm): change in
extcodehash
(#1503)
**Motivation** The `extcodehash` opcode was not handling certain edge cases correctly. **Description** - Return `U256::zero` for non-existent accounts and empty accounts. Right now we are checking if the account is empty. - Properly compute code hashes for accounts with bytecode. **References** [EIP-161](https://eips.ethereum.org/EIPS/eip-161): _An account is considered empty when it has no code and zero nonce and zero balance._ [EIP-1052](https://eips.ethereum.org/EIPS/eip-1052): _In case the account does not exist or is empty, 0 is pushed to the stack._
- Loading branch information
1 parent
be73e39
commit 378d9b5
Showing
2 changed files
with
27 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters