parent
1b4a7cb36c
commit
f4f0ba20be
@ -1,19 +0,0 @@ |
||||
'use strict' |
||||
|
||||
function TraceRetriever (options) { |
||||
this.web3 = options.web3 |
||||
} |
||||
|
||||
TraceRetriever.prototype.getTrace = function (txHash, callback) { |
||||
const options = { |
||||
disableStorage: true, |
||||
disableMemory: false, |
||||
disableStack: false, |
||||
fullStorage: false |
||||
} |
||||
this.web3.debug.traceTransaction(txHash, options, function (error, result) { |
||||
callback(error, result) |
||||
}) |
||||
} |
||||
|
||||
module.exports = TraceRetriever |
Loading…
Reference in new issue