fix dumping the storage

pull/3262/head^2
yann300 2 years ago committed by Aniket
parent 5fc107b67f
commit 9cb0510625
  1. 10
      libs/remix-simulator/src/VmProxy.ts

@ -255,10 +255,12 @@ export class VmProxy {
this.processingAddress = normalizeHexAddress(step.stack[step.stack.length - 2])
this.processingAddress = toChecksumAddress(this.processingAddress)
if (!this.storageCache[this.processingHash][this.processingAddress]) {
const account = Address.fromString(this.processingAddress)
this.vm.stateManager.dumpStorage(account).then((storage) => {
this.storageCache[this.processingHash][this.processingAddress] = storage
}).catch(console.log)
((processingHash, processingAddress, self) => {
const account = Address.fromString(processingAddress)
self.vm.stateManager.dumpStorage(account).then((storage) => {
self.storageCache[processingHash][processingAddress] = storage
}).catch(console.log)
})(this.processingHash, this.processingAddress, this)
}
}
}

Loading…
Cancel
Save