Use default reset if state does not exist

pull/4529/head
ioedeveloper 11 months ago
parent 4aaa34d807
commit b01f84669b
  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