Skip to content

Commit

Permalink
remove ineffectual check
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Ballet <[email protected]>
  • Loading branch information
gballet committed Oct 22, 2024
1 parent be24bf7 commit b0728a6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/vm/gas_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,6 @@ func gasSelfdestruct(evm *EVM, contract *Contract, stack *Stack, mem *Memory, me
}
}

if evm.chainRules.IsVerkle {
// TODO turn this into a panic (when we are sure this method
// will never execute when verkle is enabled)
log.Warn("verkle witness accumulation not supported for selfdestruct")
}

if !evm.StateDB.HasSelfDestructed(contract.Address()) {
evm.StateDB.AddRefund(params.SelfdestructRefundGas)
}
Expand Down

0 comments on commit b0728a6

Please sign in to comment.