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

fix: storageRangeAt doesn't always take a callback
pull/7/head
yann300 6 years ago committed by GitHub
commit 4a34b56a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      remix-lib/src/web3Provider/dummyProvider.js

@ -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, '') }

Loading…
Cancel
Save