Commit 5d4df4fd authored by yann300's avatar yann300

linting

parent 6c7f6638
...@@ -31,13 +31,13 @@ class StateManagerCommonStorageDump extends StateManager { ...@@ -31,13 +31,13 @@ class StateManagerCommonStorageDump extends StateManager {
this.keyHashes = {} this.keyHashes = {}
} }
S
putContractStorage (address, key, value) { putContractStorage (address, key, value) {
this.keyHashes[keccak(key).toString('hex')] = bufferToHex(key) this.keyHashes[keccak(key).toString('hex')] = bufferToHex(key)
return super.putContractStorage(address, key, value) return super.putContractStorage(address, key, value)
} }
dumpStorage (address) { dumpStorage (address) {
return new Promise<StorageDump>((resolve, reject) => { return new Promise<StorageDump>((resolve, reject) => {
this._getStorageTrie(address).then((trie) => { this._getStorageTrie(address).then((trie) => {
const storage = {} const storage = {}
...@@ -56,7 +56,7 @@ dumpStorage (address) { ...@@ -56,7 +56,7 @@ dumpStorage (address) {
reject(error) reject(error)
}) })
}) })
} }
async getStateRoot (force: boolean = false): Promise<Buffer> { async getStateRoot (force: boolean = false): Promise<Buffer> {
if (!force && this._checkpointCount !== 0) { if (!force && this._checkpointCount !== 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment