mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Fixed opcode representation when debugging via firehose(Info|Debug|Trace) call
This commit is contained in:
parent
f8c889f892
commit
f0dcb13f6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
// 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) {
|
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 {
|
if activeCall := f.callStack.Peek(); activeCall != nil {
|
||||||
opCode := vm.OpCode(op)
|
opCode := vm.OpCode(op)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue