|
|
@ -20,8 +20,8 @@ class Web3DebugPlugin extends Web3PluginBase { |
|
|
|
method: 'debug_preimage', |
|
|
|
method: 'debug_preimage', |
|
|
|
params: [key] |
|
|
|
params: [key] |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(result => cb(null, result)) |
|
|
|
.then(result => cb(null, result)) |
|
|
|
.catch(error => cb(error)) |
|
|
|
.catch(error => cb(error)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public traceTransaction(txHash, options, cb) { |
|
|
|
public traceTransaction(txHash, options, cb) { |
|
|
@ -29,8 +29,8 @@ class Web3DebugPlugin extends Web3PluginBase { |
|
|
|
method: 'debug_traceTransaction', |
|
|
|
method: 'debug_traceTransaction', |
|
|
|
params: [txHash, options] |
|
|
|
params: [txHash, options] |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(result => cb(null, result)) |
|
|
|
.then(result => cb(null, result)) |
|
|
|
.catch(error => cb(error)) |
|
|
|
.catch(error => cb(error)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public storageRangeAt(txBlockHash, txIndex, address, start, maxSize, cb) { |
|
|
|
public storageRangeAt(txBlockHash, txIndex, address, start, maxSize, cb) { |
|
|
@ -38,7 +38,7 @@ class Web3DebugPlugin extends Web3PluginBase { |
|
|
|
method: 'debug_storageRangeAt', |
|
|
|
method: 'debug_storageRangeAt', |
|
|
|
params: [txBlockHash, txIndex, address, start, maxSize] |
|
|
|
params: [txBlockHash, txIndex, address, start, maxSize] |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(result => cb(null, result)) |
|
|
|
.then(result => cb(null, result)) |
|
|
|
.catch(error => cb(error)) |
|
|
|
.catch(error => cb(error)) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|