mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
parent
5a13b62d1c
commit
0e23606e77
@ -19,14 +19,11 @@
|
|||||||
// Check that the code is empty.
|
// Check that the code is empty.
|
||||||
%add_const(3)
|
%add_const(3)
|
||||||
// stack: existing_codehash_ptr, address
|
// stack: existing_codehash_ptr, address
|
||||||
%mload_trie_data // codehash = account[3]
|
DUP1 %mload_trie_data // codehash = account[3]
|
||||||
%eq_const(@EMPTY_STRING_HASH) ISZERO %jumpi(%%error_collision)
|
%eq_const(@EMPTY_STRING_HASH) ISZERO %jumpi(%%error_collision)
|
||||||
// stack: address
|
// stack: existing_codehash_ptr, address
|
||||||
PUSH 0 DUP2 %journal_add_nonce_change
|
%sub_const(2) %mload_trie_data // balance = account[1]
|
||||||
// stack: address
|
%jump(%%do_insert)
|
||||||
%increment_nonce
|
|
||||||
PUSH 0 // success
|
|
||||||
%jump(%%end)
|
|
||||||
|
|
||||||
%%add_account:
|
%%add_account:
|
||||||
// stack: existing_balance, address
|
// stack: existing_balance, address
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user