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

on EXTCODEHASH load bytecode and check if it is EOF #1483

Closed
rakita opened this issue Jun 3, 2024 · 0 comments · Fixed by #1504
Closed

on EXTCODEHASH load bytecode and check if it is EOF #1483

rakita opened this issue Jun 3, 2024 · 0 comments · Fixed by #1504
Labels
hf-prague Prague related EIPs

Comments

@rakita
Copy link
Member

rakita commented Jun 3, 2024

if EXTCODEHASH target is an account with EOF bytecode, we need to return 0x9dbf3648db8210552e9c4f75c6a1c3057c0ca432043bd648be15fe7be05646f5

This means that extcodehash would need to load account bytecode and check first byte of it.

https://github.com/ipsilon/eof/blob/main/spec/eof.md#modified-behavior

When executed from a legacy contract, if the target account of EXTCODEHASH is an EOF contract,
then it will return 0x9dbf3648db8210552e9c4f75c6a1c3057c0ca432043bd648be15fe7be05646f5
(the hash of EF00, as if that would be the code).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hf-prague Prague related EIPs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant