|
|
@ -129,11 +129,7 @@ export class Web3VmProvider { |
|
|
|
this.storageCache[this.processingHash] = {} |
|
|
|
this.storageCache[this.processingHash] = {} |
|
|
|
if (data.to) { |
|
|
|
if (data.to) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
// dumpStorage throws error as 'Missing Node in DB'
|
|
|
|
|
|
|
|
// This can be uncommented once that error is handled
|
|
|
|
|
|
|
|
// https://github.com/ethereum/remix-project/issues/1644
|
|
|
|
|
|
|
|
const storage = await this.vm.stateManager.dumpStorage(data.to) |
|
|
|
const storage = await this.vm.stateManager.dumpStorage(data.to) |
|
|
|
// const storage = {}
|
|
|
|
|
|
|
|
this.storageCache[this.processingHash][tx['to']] = storage |
|
|
|
this.storageCache[this.processingHash][tx['to']] = storage |
|
|
|
this.lastProcessedStorageTxHash[tx['to']] = this.processingHash |
|
|
|
this.lastProcessedStorageTxHash[tx['to']] = this.processingHash |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
@ -249,11 +245,7 @@ export class Web3VmProvider { |
|
|
|
if (!this.storageCache[this.processingHash][this.processingAddress]) { |
|
|
|
if (!this.storageCache[this.processingHash][this.processingAddress]) { |
|
|
|
const account = Address.fromString(this.processingAddress) |
|
|
|
const account = Address.fromString(this.processingAddress) |
|
|
|
try { |
|
|
|
try { |
|
|
|
// dumpStorage throws error as 'Missing Node in DB'
|
|
|
|
|
|
|
|
// This can be uncommented once that error is handled
|
|
|
|
|
|
|
|
// https://github.com/ethereum/remix-project/issues/1644
|
|
|
|
|
|
|
|
const storage = await this.vm.stateManager.dumpStorage(account) |
|
|
|
const storage = await this.vm.stateManager.dumpStorage(account) |
|
|
|
// const storage = {}
|
|
|
|
|
|
|
|
this.storageCache[this.processingHash][this.processingAddress] = storage |
|
|
|
this.storageCache[this.processingHash][this.processingAddress] = storage |
|
|
|
this.lastProcessedStorageTxHash[this.processingAddress] = this.processingHash |
|
|
|
this.lastProcessedStorageTxHash[this.processingAddress] = this.processingHash |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|