Skip to content

Commit

Permalink
fix provider loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 16, 2024
1 parent a730e5d commit f69a3be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/remix-ide/src/blockchain/blockchain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit f69a3be

Please sign in to comment.