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
This commit is contained in:
Alex Beregszaszi 2021-12-01 09:34:52 +00:00 committed by GitHub
parent 2be129b5cf
commit 721c5723c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -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":