eth/tracers: fix callTracer fault handling (#23667)

* eth/tracers: fix calltracer fault handling

* eth/tracers: fix calltracer indentation
pull/23673/head
Sina Mahmoodi 3 years ago committed by GitHub
parent a47b8cf6f5
commit b522f5e091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      eth/tracers/internal/tracers/assets.go
  2. 11
      eth/tracers/internal/tracers/call_tracer.js
  3. 3
      eth/tracers/tracer.go

File diff suppressed because one or more lines are too long

@ -19,16 +19,7 @@
// about internal messages of a transaction.
{
callstack: [{}],
fault: function(log, db) {
var len = this.callstack.length
if (len > 1) {
var call = this.callstack.pop()
if (this.callstack[len-1].calls === undefined) {
this.callstack[len-1].calls = []
}
this.callstack[len-1].calls.push(call)
}
},
fault: function(log, db) {},
result: function(ctx, db) {
// Prepare outer message info
var result = {

@ -795,9 +795,6 @@ func (jst *Tracer) CaptureExit(output []byte, gasUsed uint64, err error) {
if !jst.traceCallFrames {
return
}
if jst.err != nil {
return
}
// If tracing was interrupted, set the error and stop
if atomic.LoadUint32(&jst.interrupt) > 0 {
jst.err = jst.reason

Loading…
Cancel
Save