fix cache storage

pull/5370/head
yann300 2 years ago committed by Aniket
parent 8bd1aa18cf
commit 0fbef46ca2
  1. 4
      libs/remix-simulator/src/VmProxy.ts

@ -194,10 +194,10 @@ export class VmProxy {
const to = this.txs[this.processingHash].to
if (to) {
try {
(async (processingHash, processingAddress, self) => {
await (async (processingHash, processingAddress, self) => {
try {
const account = Address.fromString(processingAddress)
const storage = await self.stateCopy.dumpStorage(account)
const storage = await self.vm.stateManager.dumpStorage(account)
self.storageCache['after_' + processingHash][processingAddress] = storage
} catch (e) {
console.log(e)

Loading…
Cancel
Save