mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 22:33:06 +00:00
parent
5a13b62d1c
commit
0e23606e77
@ -19,14 +19,11 @@
|
||||
// Check that the code is empty.
|
||||
%add_const(3)
|
||||
// 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)
|
||||
// stack: address
|
||||
PUSH 0 DUP2 %journal_add_nonce_change
|
||||
// stack: address
|
||||
%increment_nonce
|
||||
PUSH 0 // success
|
||||
%jump(%%end)
|
||||
// stack: existing_codehash_ptr, address
|
||||
%sub_const(2) %mload_trie_data // balance = account[1]
|
||||
%jump(%%do_insert)
|
||||
|
||||
%%add_account:
|
||||
// stack: existing_balance, address
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user