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

[fix] Empty codehash value #10

Closed
wants to merge 1 commit into from
Closed

[fix] Empty codehash value #10

wants to merge 1 commit into from

Conversation

ytham
Copy link
Collaborator

@ytham ytham commented Apr 16, 2024

  • Sets codehash return to keccak256(0) as per EIP-1052

@jonathanpwang
Copy link
Contributor

I was referring to the difference in behavior between EOA account versus account that does not exist. The EIP has different test cases for those. Note that RPC providers do not always follow the EIP.

The EXTCODEHASH of the account without code (EOA) is c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 which is the keccack256 hash of empty data.
The EXTCODEHASH of non-existent account is 0.

@ytham ytham closed this Apr 18, 2024
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