Make sure the address is checksumed

yann300-patch-12
yann300 4 years ago committed by GitHub
parent e6cdc4543b
commit 008a557fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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
} else {
this.processingAddress = uiutil.normalizeHexAddress(step.stack[step.stack.length - 2])
this.processingAddress = ethutil.toChecksumAddress(this.processingAddress)
if (!self.storageCache[self.processingHash][this.processingAddress]) {
const account = ethutil.toBuffer(this.processingAddress)
self.vm.stateManager.dumpStorage(account, function (storage) {

Loading…
Cancel
Save