From 1153444101e600ccbf5b49571df579ba2f6c9025 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 8 Mar 2022 20:43:36 +0100 Subject: [PATCH] fix listen on web3: VM is now considered as a web3 network --- libs/remix-lib/src/execution/txListener.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-lib/src/execution/txListener.ts b/libs/remix-lib/src/execution/txListener.ts index 0e8874173c..0d5b26eb84 100644 --- a/libs/remix-lib/src/execution/txListener.ts +++ b/libs/remix-lib/src/execution/txListener.ts @@ -60,7 +60,7 @@ export class TxListener { // in VM mode // in web3 mode && listen remix txs only if (!this._isListening) return // we don't listen - if (this._loopId && this.executionContext.getProvider() !== 'vm') return // we seems to already listen on a "web3" network + if (this._loopId) return // we seems to already listen on a "web3" network let returnValue let execResult @@ -95,7 +95,7 @@ export class TxListener { // in VM mode // in web3 mode && listen remix txs only if (!this._isListening) return // we don't listen - if (this._loopId && this.executionContext.getProvider() !== 'vm') return // we seems to already listen on a "web3" network + if (this._loopId) return // we seems to already listen on a "web3" network this.executionContext.web3().eth.getTransaction(txResult.transactionHash, async (error, tx) => { if (error) return console.log(error)