From f69a3be4f6ee5b66232a24a2089e6ba6ba5ddf9a Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 16 Dec 2024 16:27:30 +0530 Subject: [PATCH] fix provider loading --- apps/remix-ide/src/blockchain/blockchain.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index c98f9c6351c..e034d188586 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/apps/remix-ide/src/blockchain/blockchain.tsx @@ -590,10 +590,8 @@ export class Blockchain extends Plugin { } web3() { - const isVM = this.executionContext.isVM() - if (isVM) { - return (this.providers.vm as VMProvider).web3 - } + if (this.executionContext.executionContext.startsWith('vm-')) return (this.providers.vm as VMProvider).web3 + else if (this.executionContext.executionContext.startsWith('svs-')) return (this.providers.svs as SVSProvider).web3 return this.executionContext.web3() }