From c8939a53a61c093120ce8b12fd2ecc90ac95443c Mon Sep 17 00:00:00 2001 From: SashaMalysehko Date: Wed, 10 Dec 2025 08:57:02 +0200 Subject: [PATCH] a more readable way --- eth/tracers/native/erc7562.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eth/tracers/native/erc7562.go b/eth/tracers/native/erc7562.go index 3bb33cac64..34e202f667 100644 --- a/eth/tracers/native/erc7562.go +++ b/eth/tracers/native/erc7562.go @@ -513,10 +513,9 @@ func defaultIgnoredOpcodes() []hexutil.Uint64 { ignored := make([]hexutil.Uint64, 0, 64) // Allow all PUSHx, DUPx and SWAPx opcodes as they have sequential codes - for op := vm.PUSH0; op < vm.SWAP16; op++ { + for op := vm.PUSH0; op <= vm.SWAP16; op++ { ignored = append(ignored, hexutil.Uint64(op)) } - ignored = append(ignored, hexutil.Uint64(vm.SWAP16)) for _, op := range []vm.OpCode{ vm.POP, vm.ADD, vm.SUB, vm.MUL,