From a5d88055eb2d344ac9dacdb8474316057c3dfb7c Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 18 Sep 2020 10:07:07 +0200 Subject: [PATCH] use the remix-simulator provider --- apps/remix-ide/src/blockchain/blockchain.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/remix-ide/src/blockchain/blockchain.js b/apps/remix-ide/src/blockchain/blockchain.js index cf57531072..87468ba048 100644 --- a/apps/remix-ide/src/blockchain/blockchain.js +++ b/apps/remix-ide/src/blockchain/blockchain.js @@ -228,6 +228,11 @@ class Blockchain { } web3 () { + // @todo(https://github.com/ethereum/remix-project/issues/431) + const isVM = this.getProvider() === 'vm' + if (isVM) { + return this.providers.vm.web3 + } return this.executionContext.web3() }