From e0feb18dbaf6fb197c9df7b5481d615017ff80fc Mon Sep 17 00:00:00 2001 From: Valentin Staykov <79150443+V-Staykov@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:48:26 +0300 Subject: [PATCH] fix selfdestruct (#1064) --- core/vm/jump_table_zkevm.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/vm/jump_table_zkevm.go b/core/vm/jump_table_zkevm.go index f71f3aba710..963bf103d19 100644 --- a/core/vm/jump_table_zkevm.go +++ b/core/vm/jump_table_zkevm.go @@ -39,7 +39,12 @@ func newForkID4InstructionSet() JumpTable { instructionSet[EXTCODEHASH].execute = opExtCodeHash_zkevm // SELFDESTRUCT is replaces by SENDALL - instructionSet[SELFDESTRUCT].execute = opSendAll_zkevm + instructionSet[SELFDESTRUCT] = &operation{ + execute: opSendAll_zkevm, + dynamicGas: gasSelfdestruct_zkevm, + numPop: 1, + numPush: 0, + } validateAndFillMaxStack(&instructionSet) return instructionSet