From 425d6a5059e3f116e3fc75613fbac8d9769aedfe Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 16 Jan 2020 16:45:13 -0500 Subject: [PATCH] fix check getProvider --- src/blockchain/blockchain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockchain/blockchain.js b/src/blockchain/blockchain.js index e8e4b646cc..29ac17714c 100644 --- a/src/blockchain/blockchain.js +++ b/src/blockchain/blockchain.js @@ -211,7 +211,7 @@ class Blockchain { } isWeb3Provider () { - const isVM = this.getProvider === 'vm' + const isVM = this.getProvider() === 'vm' const isInjected = this.getProvider() === 'injected' return (!isVM && !isInjected) } @@ -296,7 +296,7 @@ class Blockchain { resetEnvironment () { this.getCurrentProvider().resetEnvironment() - // TODO: most params here can be refactored away in txRunner + // TODO: most params here can be refactored away in txRunner this.txRunner = new TxRunner(this.providers.vm.accounts, { // TODO: only used to check value of doNotShowTransactionConfirmationAgain property config: this.config,