parent
d093484605
commit
caf8d6cd3b
@ -0,0 +1,33 @@ |
||||
class Debug { |
||||
constructor (executionContext) { |
||||
this.executionContext = executionContext |
||||
} |
||||
|
||||
methods () { |
||||
return { |
||||
debug_traceTransaction: this.debug_traceTransaction.bind(this), |
||||
debug_preimage: this.debug_preimage.bind(this), |
||||
debug_storageRangeAt: this.debug_storageRangeAt.bind(this), |
||||
} |
||||
} |
||||
|
||||
debug_traceTransaction (payload, cb) { |
||||
this.executionContext.web3().debug.traceTransaction(payload.params[0], {}, cb) |
||||
} |
||||
|
||||
debug_preimage (payload, cb) { |
||||
this.executionContext.web3().debug.preimage(payload.params[0], cb) |
||||
} |
||||
|
||||
debug_storageRangeAt (payload, cb) { |
||||
this.executionContext.web3().debug.storageRangeAt( |
||||
payload.params[0], |
||||
payload.params[1], |
||||
payload.params[2], |
||||
payload.params[3], |
||||
payload.params[4], |
||||
cb) |
||||
} |
||||
} |
||||
|
||||
module.exports = Debug |
Loading…
Reference in new issue