aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorTom Schmidt <imtomhschmidt@gmail.com>2018-03-10 04:44:11 +0800
committerTom Schmidt <imtomhschmidt@gmail.com>2018-03-10 04:44:11 +0800
commit654c790c3df3ee857952a1023761f186bb9c777d (patch)
treead678ae9b66563c3d6cb9056e5b77b17b81d7123 /packages
parentc78e504bfba369adf2716964f787f9655fc9ea07 (diff)
downloaddexon-sol-tools-654c790c3df3ee857952a1023761f186bb9c777d.tar.gz
dexon-sol-tools-654c790c3df3ee857952a1023761f186bb9c777d.tar.zst
dexon-sol-tools-654c790c3df3ee857952a1023761f186bb9c777d.zip
Fixed Parity detection
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/utils/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index b6a02f253..eaf1d43cc 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -315,7 +315,7 @@ export const utils = {
parsedProviderName = 'METAMASK';
} else if (provider.constructor.name === 'EthereumProvider') {
parsedProviderName = 'MIST';
- } else if (provider.constructor.name === 'o') {
+ } else if ((provider as any).isParity) {
parsedProviderName = 'PARITY';
}
return parsedProviderName;