eth/tracers/js: add support for REVERT/SELFDESTRUCT in evmdis_tracer (#24016)

* eth/tracers: Add support for REVERT in evmdis_tracer

* evm/tracers: Fix evmdis_tracer to use SELFDESTRUCT instead of SUICIDE

* eth/tracers: Regenerate tracer library
pull/24027/head
Alex Beregszaszi 3 years ago committed by GitHub
parent 2be129b5cf
commit 721c5723c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      eth/tracers/js/internal/tracers/assets.go
  2. 4
      eth/tracers/js/internal/tracers/evmdis_tracer.js

File diff suppressed because one or more lines are too long

@ -71,12 +71,12 @@
opinfo["ops"] = [];
this.stack.push(opinfo);
break;
case "RETURN":
case "RETURN": case "REVERT":
var out = log.stack.peek(0).valueOf();
var outsize = log.stack.peek(1).valueOf();
frame.return = log.memory.slice(out, out + outsize);
break;
case "STOP": case "SUICIDE":
case "STOP": case "SELFDESTRUCT":
frame.return = log.memory.slice(0, 0);
break;
case "JUMPDEST":

Loading…
Cancel
Save