fix check getProvider

pull/5370/head
Iuri Matias 5 years ago
parent 57bb904ef2
commit 425d6a5059
  1. 4
      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,

Loading…
Cancel
Save