From b0728a60279f8ef368a8b08ecb9670599a9664bb Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:44:27 +0200 Subject: [PATCH] remove ineffectual check Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com> --- core/vm/gas_table.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index 7fcfd0472e3a..db91f20f7ceb 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -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) }