remove commented code

pull/3262/head^2
yann300 2 years ago committed by Aniket
parent 6c50d75395
commit c5da88802f
  1. 13
      libs/remix-simulator/src/vm-context.ts

@ -77,20 +77,7 @@ class StateManagerCommonStorageDump extends DefaultStateManager {
}) })
} }
/*
async getStateRoot (force = false) {
await this._cache.flush()
const stateRoot = this._trie.root
return stateRoot
}
*/
async setStateRoot (stateRoot) { async setStateRoot (stateRoot) {
/*if (this._checkpointCount !== 0) {
throw new Error('Cannot set state root with uncommitted checkpoints')
}*/
await this._cache.flush() await this._cache.flush()
if (!stateRoot.equals(this._trie.EMPTY_TRIE_ROOT)) { if (!stateRoot.equals(this._trie.EMPTY_TRIE_ROOT)) {

Loading…
Cancel
Save