eth/tracers/native: include SWAP16 in default ignored opcodes (#33381)

This commit is contained in:
SashaMalysehko 2025-12-10 09:13:47 +02:00 committed by GitHub
parent 215ee6ac18
commit 1ce71a1895
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -513,7 +513,7 @@ 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))
}