From fa1bc987637909d1f7a50ead86cf07f4e69b25dd Mon Sep 17 00:00:00 2001 From: Ayushya Chitransh Date: Tue, 7 May 2019 13:05:34 +0530 Subject: [PATCH] docs: fixed traceTransaction with custom tracer example (#19512) Fixed traceTransacion with custom tracer example. --- docs/_interface/Management-APIs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_interface/Management-APIs.md b/docs/_interface/Management-APIs.md index 6d66d78976..fbb24d5b3a 100644 --- a/docs/_interface/Management-APIs.md +++ b/docs/_interface/Management-APIs.md @@ -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 } -``` \ No newline at end of file +```