remove uneeded

pull/3285/head^2
yann300 2 years ago committed by Aniket
parent f50ac473ec
commit bfa212eb90
  1. 15
      libs/remix-simulator/src/vm-context.ts

@ -79,21 +79,6 @@ class StateManagerCommonStorageDump extends DefaultStateManager {
})
})
}
async setStateRoot (stateRoot) {
await this._cache.flush()
if (!stateRoot.equals(this._trie.EMPTY_TRIE_ROOT)) {
const hasRoot = await this._trie.checkRoot(stateRoot)
if (!hasRoot) {
throw new Error('State trie does not contain state root')
}
}
this._trie.root = stateRoot
this._cache.clear()
this._storageTries = {}
}
}
export type CurrentVm = {

Loading…
Cancel
Save