|
|
|
@ -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) { |
|
|
|
|