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,