pull/1122/head
yann300 4 years ago
parent c40308923f
commit 8fb14d6086
  1. 12
      libs/remix-lib/src/execution/execution-context.ts
  2. 2
      libs/remix-lib/src/util.ts

@ -39,10 +39,16 @@ class StateManagerCommonStorageDump extends StateManager {
return super.putContractStorage(address, key, value)
}
dumpStorage (address) {
return new Promise<StorageDump>(async (resolve, reject) => {
async dumpStorage (address) {
let trie
try {
trie = await this._getStorageTrie(address)
} catch (e) {
console.log(e)
throw e
}
return new Promise<StorageDump>((resolve, reject) => {
try {
const trie = await this._getStorageTrie(address)
const storage = {}
const stream = trie.createReadStream()
stream.on('data', (val) => {

@ -14,7 +14,7 @@ import { BN, bufferToHex, keccak, setLengthLeft, toBuffer } from 'ethereumjs-uti
ints: IntArray
*/
/**
/**
* Converts a hex string to an array of integers.
*/
export function hexToIntArray (hexString) {

Loading…
Cancel
Save