From f0dcb13f6bd651267a9882b7d7ba2f7432c5323c Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Wed, 1 May 2024 13:24:03 -0400 Subject: [PATCH] Fixed opcode representation when debugging via `firehose(Info|Debug|Trace)` call --- eth/tracers/firehose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/tracers/firehose.go b/eth/tracers/firehose.go index 34b00e81c0..42f365ead1 100644 --- a/eth/tracers/firehose.go +++ b/eth/tracers/firehose.go @@ -768,7 +768,7 @@ func (f *Firehose) OnCallExit(depth int, output []byte, gasUsed uint64, err erro // OnOpcode implements the EVMLogger interface to trace a single step of VM execution. func (f *Firehose) OnOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, depth int, err error) { - firehoseTrace("on opcode (op=%s gas=%d cost=%d, err=%s)", op, gas, cost, errorView(err)) + firehoseTrace("on opcode (op=%s gas=%d cost=%d, err=%s)", vm.OpCode(op), gas, cost, errorView(err)) if activeCall := f.callStack.Peek(); activeCall != nil { opCode := vm.OpCode(op)