From b01f84669ba84d87424829facecd520d40cf56c1 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 6 Mar 2024 14:40:09 +0100 Subject: [PATCH] Use default reset if state does not exist --- apps/remix-ide/src/blockchain/blockchain.tsx | 2 ++ 1 file changed, 2 insertions(+) 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()