Skip to content

Commit

Permalink
Make sure success is 0 in contract failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Oct 9, 2023
1 parent 41a29f0 commit c5fe06d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evm/src/cpu/kernel/asm/core/process_txn.asm
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ contract_creation_fault_3:
// stack: leftover_gas', retdest, success
%delete_all_touched_addresses
%delete_all_selfdestructed_addresses
%stack (leftover_gas, retdest, success) -> (retdest, success, leftover_gas)
%stack (leftover_gas, retdest, success) -> (retdest, 0, leftover_gas)
JUMP

contract_creation_fault_3_zero_leftover:
Expand All @@ -432,7 +432,7 @@ contract_creation_fault_3_zero_leftover:
%pay_coinbase_and_refund_sender
%delete_all_touched_addresses
%delete_all_selfdestructed_addresses
%stack (leftover_gas, retdest, success) -> (retdest, success, leftover_gas)
%stack (leftover_gas, retdest, success) -> (retdest, 0, leftover_gas)
JUMP

contract_creation_fault_4:
Expand All @@ -444,7 +444,7 @@ contract_creation_fault_4:
%pay_coinbase_and_refund_sender
%delete_all_touched_addresses
%delete_all_selfdestructed_addresses
%stack (leftover_gas, retdest, success) -> (retdest, success, leftover_gas)
%stack (leftover_gas, retdest, success) -> (retdest, 0, leftover_gas)
JUMP


Expand Down

0 comments on commit c5fe06d

Please sign in to comment.