Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ethereum/forks/amsterdam/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,12 @@ def write_code(sender: Account) -> None:

modify_state(state, address, write_code)

track_code_change(state.change_tracker, address, code)
# Only track code changes if it's not setting empty code on a
# newly created address. For newly created addresses, setting
# code to b"" is not a meaningful state change since the address
# had no code to begin with.
if not (code == b"" and address in state.created_accounts):
track_code_change(state.change_tracker, address, code)


def get_storage_original(state: State, address: Address, key: Bytes32) -> U256:
Expand Down
Loading