pull/5370/head
yann300 4 years ago
parent 77c7295756
commit 36c9ee3db2
  1. 10
      libs/remix-lib/src/execution/execution-context.ts

@ -31,13 +31,13 @@ class StateManagerCommonStorageDump extends StateManager {
this.keyHashes = {}
}
S
putContractStorage (address, key, value) {
putContractStorage (address, key, value) {
this.keyHashes[keccak(key).toString('hex')] = bufferToHex(key)
return super.putContractStorage(address, key, value)
}
}
dumpStorage (address) {
dumpStorage (address) {
return new Promise<StorageDump>((resolve, reject) => {
this._getStorageTrie(address).then((trie) => {
const storage = {}
@ -56,7 +56,7 @@ dumpStorage (address) {
reject(error)
})
})
}
}
async getStateRoot (force: boolean = false): Promise<Buffer> {
if (!force && this._checkpointCount !== 0) {

Loading…
Cancel
Save