Use default reset if state does not exist

pull/5370/head
ioedeveloper 12 months ago
parent c5620f8cc2
commit c334774188
  1. 2
      apps/remix-ide/src/blockchain/blockchain.tsx

@ -655,6 +655,8 @@ export class Blockchain extends Plugin {
const stateDb = await this.call('fileManager', 'readFile', `.states/${context}/state.json`)
await this.getCurrentProvider().resetEnvironment(stateDb)
} else {
await this.getCurrentProvider().resetEnvironment()
}
} else {
await this.getCurrentProvider().resetEnvironment()

Loading…
Cancel
Save