mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
cb48e25ccf
commit
fcd9685c87
1 changed files with 4 additions and 0 deletions
|
|
@ -237,6 +237,10 @@ func makeSelfdestructGasFn(refundsEnabled bool) gasFunc {
|
|||
// If the caller cannot afford the cost, this change will be rolled back
|
||||
evm.StateDB.AddAddressToAccessList(address)
|
||||
gas = params.ColdAccountAccessCostEIP2929
|
||||
|
||||
if contract.Gas < gas {
|
||||
return gas, nil
|
||||
}
|
||||
}
|
||||
// if empty and transfers value
|
||||
if evm.StateDB.Empty(address) && evm.StateDB.GetBalance(contract.Address()).Sign() != 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue