Fixed traceTransaction with custom tracer example

From 10c4630101402a700d54f1614d8c8bd811ce36eb Mon Sep 17 00:00:00 2001
From: Jonas Felber <felber.jonas@gmail.com>
Date: Fri, 15 Mar 2019 10:49:38 +0100
Subject: [PATCH] Fixed traceTransacion with custom tracer example.

closes #19277
This commit is contained in:
Ayushya Chitransh 2019-04-30 14:30:43 +05:30 committed by GitHub
parent 976f39362b
commit 61e48a49a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -787,7 +787,7 @@ Note that several values are Golang big.Int objects, not JavaScript numbers or J
Usage example, returns the top element of the stack at each CALL opcode only:
debug.traceTransaction(txhash, {tracer: '{data: [], step: function(log) { if(log.op.toString() == "CALL") this.data.push(log.stack.peek(0)); }, result: function() { return this.data; }}'});
debug.traceTransaction(txhash, {tracer: '{data: [], fault: function(log) {}, step: function(log) { if(log.op.toString() == "CALL") this.data.push(log.stack.peek(0)); }, result: function() { return this.data; }}'});
### debug_verbosity
@ -1329,4 +1329,4 @@ the number of transactions in that particular state.
pending: 10,
queued: 7
}
```
```