EIP-3529: Remove the SELFDESTRUCT refund.
- remove it from both nim-evm and nim-evm2
This commit is contained in:
parent
e08c9ef2d9
commit
8982e6c649
|
@ -8,7 +8,7 @@
|
|||
import
|
||||
options, sets,
|
||||
eth/common, chronicles, ../db/accounts_cache,
|
||||
../transaction,
|
||||
../transaction, ../forks,
|
||||
./computation, ./interpreter, ./state, ./types
|
||||
|
||||
proc execComputation*(c: Computation) =
|
||||
|
@ -19,7 +19,9 @@ proc execComputation*(c: Computation) =
|
|||
c.execCallOrCreate()
|
||||
|
||||
if c.isSuccess:
|
||||
c.refundSelfDestruct()
|
||||
if c.fork < FkLondon:
|
||||
# EIP-3529: Reduction in refunds
|
||||
c.refundSelfDestruct()
|
||||
shallowCopy(c.vmState.selfDestructs, c.selfDestructs)
|
||||
shallowCopy(c.vmState.logEntries, c.logEntries)
|
||||
c.vmState.touchedAccounts.incl c.touchedAccounts
|
||||
|
|
|
@ -89,7 +89,9 @@ proc execComputation*(c: Computation) =
|
|||
c.execCallOrCreate()
|
||||
|
||||
if c.isSuccess:
|
||||
c.refundSelfDestruct()
|
||||
if c.fork < FkLondon:
|
||||
# EIP-3529: Reduction in refunds
|
||||
c.refundSelfDestruct()
|
||||
shallowCopy(c.vmState.selfDestructs, c.selfDestructs)
|
||||
shallowCopy(c.vmState.logEntries, c.logEntries)
|
||||
c.vmState.touchedAccounts.incl c.touchedAccounts
|
||||
|
|
Loading…
Reference in New Issue