Unverified Commit 4a34b56a authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1122 from andremedeiros/fix/storage-range-without-callback

fix: storageRangeAt doesn't always take a callback
parents db77e930 7688b7dc
...@@ -25,7 +25,12 @@ dummyProvider.prototype.traceTransaction = function (txHash, options, cb) { ...@@ -25,7 +25,12 @@ dummyProvider.prototype.traceTransaction = function (txHash, options, cb) {
return {} return {}
} }
dummyProvider.prototype.storageRangeAt = function (blockNumber, txIndex, address, start, end, maxLength, cb) { cb(null, {}) } dummyProvider.prototype.storageRangeAt = function (blockNumber, txIndex, address, start, end, maxLength, cb) {
if (cb) {
cb(null, {})
}
return {}
}
dummyProvider.prototype.getBlockNumber = function (cb) { cb(null, '') } dummyProvider.prototype.getBlockNumber = function (cb) { cb(null, '') }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment