mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
Fix extcodehash when account is empty (#1055)
This commit is contained in:
parent
08a061bc4d
commit
9727eaf1e0
@ -13,10 +13,14 @@ global sys_extcodehash:
|
|||||||
// stack: kexit_info, address
|
// stack: kexit_info, address
|
||||||
|
|
||||||
SWAP1
|
SWAP1
|
||||||
|
DUP1 %is_dead %jumpi(extcodehash_dead)
|
||||||
%extcodehash
|
%extcodehash
|
||||||
// stack: hash, kexit_info
|
// stack: hash, kexit_info
|
||||||
SWAP1
|
SWAP1
|
||||||
EXIT_KERNEL
|
EXIT_KERNEL
|
||||||
|
extcodehash_dead:
|
||||||
|
%stack (address, kexit_info) -> (kexit_info, 0)
|
||||||
|
EXIT_KERNEL
|
||||||
|
|
||||||
global extcodehash:
|
global extcodehash:
|
||||||
// stack: address, retdest
|
// stack: address, retdest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user