diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index c6215f484f..0ca65897b1 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/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()