Fix extcodehash when account is empty (#1055)

This commit is contained in:
wborgeaud 2023-05-24 15:03:02 +02:00 committed by GitHub
parent 08a061bc4d
commit 9727eaf1e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,14 @@ global sys_extcodehash:
// stack: kexit_info, address
SWAP1
DUP1 %is_dead %jumpi(extcodehash_dead)
%extcodehash
// stack: hash, kexit_info
SWAP1
EXIT_KERNEL
extcodehash_dead:
%stack (address, kexit_info) -> (kexit_info, 0)
EXIT_KERNEL
global extcodehash:
// stack: address, retdest