Commit 8fb14d60 authored by yann300's avatar yann300

linting

parent c4030892
...@@ -39,10 +39,16 @@ class StateManagerCommonStorageDump extends StateManager { ...@@ -39,10 +39,16 @@ class StateManagerCommonStorageDump extends StateManager {
return super.putContractStorage(address, key, value) return super.putContractStorage(address, key, value)
} }
dumpStorage (address) { async dumpStorage (address) {
return new Promise<StorageDump>(async (resolve, reject) => { let trie
try {
trie = await this._getStorageTrie(address)
} catch (e) {
console.log(e)
throw e
}
return new Promise<StorageDump>((resolve, reject) => {
try { try {
const trie = await this._getStorageTrie(address)
const storage = {} const storage = {}
const stream = trie.createReadStream() const stream = trie.createReadStream()
stream.on('data', (val) => { stream.on('data', (val) => {
......
...@@ -14,7 +14,7 @@ import { BN, bufferToHex, keccak, setLengthLeft, toBuffer } from 'ethereumjs-uti ...@@ -14,7 +14,7 @@ import { BN, bufferToHex, keccak, setLengthLeft, toBuffer } from 'ethereumjs-uti
ints: IntArray ints: IntArray
*/ */
/** /**
* Converts a hex string to an array of integers. * Converts a hex string to an array of integers.
*/ */
export function hexToIntArray (hexString) { export function hexToIntArray (hexString) {
......
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