parent
a5d88055eb
commit
6d4a8d62fe
@ -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