diff options
author | Tom Schmidt <imtomhschmidt@gmail.com> | 2018-03-10 04:44:11 +0800 |
---|---|---|
committer | Tom Schmidt <imtomhschmidt@gmail.com> | 2018-03-10 04:44:11 +0800 |
commit | 654c790c3df3ee857952a1023761f186bb9c777d (patch) | |
tree | ad678ae9b66563c3d6cb9056e5b77b17b81d7123 /packages/website/ts | |
parent | c78e504bfba369adf2716964f787f9655fc9ea07 (diff) | |
download | dexon-sol-tools-654c790c3df3ee857952a1023761f186bb9c777d.tar.gz dexon-sol-tools-654c790c3df3ee857952a1023761f186bb9c777d.tar.zst dexon-sol-tools-654c790c3df3ee857952a1023761f186bb9c777d.zip |
Fixed Parity detection
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 2 |
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; |