aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-10-23 01:56:39 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-10-23 01:56:39 +0800
commit1a3b1607b12cd75a1fc12ecd504dad61bef8d291 (patch)
treea7efd6359332063412dd6cb919640d6bb3ec057a
parent2bb53d5b1df7cebaf6fd2e17640729f7401d7162 (diff)
downloaddexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.tar
dexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.tar.gz
dexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.tar.bz2
dexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.tar.lz
dexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.tar.xz
dexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.tar.zst
dexon-sol-tools-1a3b1607b12cd75a1fc12ecd504dad61bef8d291.zip
fix(website): create correct subprovider for metamask
-rw-r--r--packages/website/ts/blockchain.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index efb5aef23..62e16dd1d 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -163,7 +163,7 @@ export class Blockchain {
const providerName = this._getNameGivenProvider(injectedWeb3.currentProvider);
// Wrap Metamask in a compatability wrapper MetamaskSubprovider (to handle inconsistencies)
const signerSubprovider =
- providerName === Providers.Metamask
+ providerName === constants.PROVIDER_NAME_METAMASK
? new MetamaskSubprovider(injectedWeb3.currentProvider)
: new SignerSubprovider(injectedWeb3.currentProvider);
provider.addProvider(signerSubprovider);