Merge pull request #527 from ethereum/yann300-patch-12

Make sure the address is checksumed
pull/5370/head
yann300 4 years ago committed by GitHub
commit d5de2ada8e
  1. 1
      libs/remix-lib/src/web3Provider/web3VmProvider.js

@ -174,6 +174,7 @@ web3VmProvider.prototype.pushTrace = function (self, data) {
this.lastProcessedStorageTxHash[this.processingAddress] = this.processingHash this.lastProcessedStorageTxHash[this.processingAddress] = this.processingHash
} else { } else {
this.processingAddress = uiutil.normalizeHexAddress(step.stack[step.stack.length - 2]) this.processingAddress = uiutil.normalizeHexAddress(step.stack[step.stack.length - 2])
this.processingAddress = ethutil.toChecksumAddress(this.processingAddress)
if (!self.storageCache[self.processingHash][this.processingAddress]) { if (!self.storageCache[self.processingHash][this.processingAddress]) {
const account = ethutil.toBuffer(this.processingAddress) const account = ethutil.toBuffer(this.processingAddress)
self.vm.stateManager.dumpStorage(account, function (storage) { self.vm.stateManager.dumpStorage(account, function (storage) {

Loading…
Cancel
Save