This commit is contained in:
wborgeaud 2023-06-06 18:22:41 +02:00 committed by GitHub
parent 5a13b62d1c
commit 0e23606e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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