Skip to content

Commit

Permalink
Add account to selfDestruct
Browse files Browse the repository at this point in the history
See #517
  • Loading branch information
franck44 committed Jan 31, 2023
1 parent 3ca85a2 commit d8acc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dafny/bytecode.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ module Bytecode {
// Determine account to send remaining any remaining funds.
var r := ((st.Peek(0) as nat) % TWO_160) as u160;
// Register contract deletion in substate!
var ss := st.evm.substate.AccountAccessed(r);
var ss := st.evm.substate.AccountAccessed(r).AccountDestructed(address);
// Apply refund
var w := if address != r && (!st.Exists(r) || st.evm.world.CanDeposit(r,balance))
// Refund balance to r
Expand Down

0 comments on commit d8acc98

Please sign in to comment.