From ffe670923e418c18c1f977c5f4f636b5022281b9 Mon Sep 17 00:00:00 2001 From: Vignesh Mohankumar Date: Fri, 19 Aug 2022 12:06:14 -0400 Subject: [PATCH] feat: remove fortmatic (#4167) * rm fortmatic (wip for test) * remove isChainAllowed * handle unexpected connector * clear on catch * Revert "remove isChainAllowed" This reverts commit d505cac39a446cb2c273016d03896469ba39eb60. * fix to actually use ALLOWED_CHAIN_IDS * fix --- package.json | 1 - public/index.html | 1 - src/components/Header/NetworkSelector.tsx | 4 +-- src/components/Identicon/StatusIcon.tsx | 4 --- src/components/NavBar/ChainSwitcher.tsx | 4 +-- .../WalletModal/FortmaticOption.tsx | 24 ----------------- src/components/WalletModal/index.test.tsx | 12 +++------ src/components/WalletModal/index.tsx | 13 +--------- src/connection/index.ts | 12 --------- src/connection/utils.ts | 6 ----- src/hooks/useEagerlyConnect.ts | 20 +++++++++++--- src/hooks/useOrderedConnections.ts | 7 +---- src/lib/hooks/useCurrency.ts | 8 +++--- src/react-app-env.d.ts | 2 -- src/state/connection/reducer.ts | 1 - src/utils/switchChain.ts | 26 +++---------------- yarn.lock | 5 ---- 17 files changed, 34 insertions(+), 116 deletions(-) delete mode 100644 src/components/WalletModal/FortmaticOption.tsx diff --git a/package.json b/package.json index 351c7020a5..b0f8e548f6 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,6 @@ "ethers": "^5.1.4", "firebase": "^9.1.3", "focus-visible": "^5.2.0", - "fortmatic": "^2.4.0", "graphql": "^16.5.0", "graphql-request": "^3.4.0", "immer": "^9.0.6", diff --git a/public/index.html b/public/index.html index 250513f38a..1974dddfd5 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,6 @@ -