Update gas table to make use of the dual state db

This commit is contained in:
Peter Fox 2018-07-15 23:32:52 +01:00
parent f25cdca033
commit 8470793052
1 changed files with 1 additions and 0 deletions

View File

@ -405,6 +405,7 @@ func gasSuicide(gt params.GasTable, evm *EVM, contract *Contract, stack *Stack,
}
}
db = getDualState(evm, contract.Address())
if !db.HasSuicided(contract.Address()) {
db.AddRefund(params.SuicideRefundGas)
}