Skip to content

Commit 3178c2a

Browse files
committed
fix(spec-specs): correct gas accounting for blocks under create collision
1 parent 7167eba commit 3178c2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ethereum/forks/amsterdam/vm/interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ def process_message_call(message: Message) -> MessageCallOutput:
125125
if is_collision:
126126
return MessageCallOutput(
127127
gas_left=Uint(0),
128-
state_gas_left=Uint(0),
128+
state_gas_left=message.state_gas_reservoir,
129129
refund_counter=U256(0),
130130
logs=tuple(),
131131
accounts_to_delete=set(),
132132
error=AddressCollision(),
133133
return_data=Bytes(b""),
134-
regular_gas_used=Uint(0),
134+
regular_gas_used=message.gas,
135135
state_gas_used=Uint(0),
136136
)
137137
else:

0 commit comments

Comments
 (0)