Skip to content

Commit

Permalink
Temp: disable non-injected wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Jun 19, 2024
1 parent 564a7fe commit 2670453
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 867 deletions.
621 changes: 161 additions & 460 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,12 @@
},
"dependencies": {
"@apollo/client": "3.7.14",
"@argent/login": "^0.1.0-beta.4",
"@colony/abis": "^1.2.4",
"@colony/colony-js": "^7.1.0",
"@colony/events": "0.0.0-snapshot-20240329154314",
"@colony/redux-promise-listener": "^1.2.0",
"@colony/unicode-confusables-noascii": "^0.1.2",
"@hookform/resolvers": "^2.9.10",
"@ledgerhq/connect-kit": "^1.1.12",
"@phosphor-icons/react": "^2.1.5",
"@popperjs/core": "^2.3.3",
"@tanstack/react-table": "^8.10.0",
Expand All @@ -169,17 +167,11 @@
"@tiptap/pm": "^2.0.4",
"@tiptap/react": "^2.0.4",
"@tiptap/starter-kit": "^2.0.4",
"@walletconnect/ethereum-provider": "^2.13.0",
"@web3-onboard/coinbase": "^2.2.7",
"@web3-onboard/common": "^2.2.4",
"@web3-onboard/common": "^2.4.2",
"@web3-onboard/core": "^2.21.6",
"@web3-onboard/gnosis": "^2.3.1",
"@web3-onboard/injected-wallets": "^2.10.17",
"@web3-onboard/magic": "^2.1.7",
"@web3-onboard/metamask": "^2.0.7",
"@web3-onboard/sequence": "^2.0.8",
"@web3-onboard/trezor": "^2.4.4",
"@web3-onboard/walletconnect": "^2.5.5",
"@web3-onboard/web3auth": "^2.2.3",
"@web3-onboard/walletconnect": "^2.6.1",
"@xobotyi/scrollbar-width": "^1.9.5",
"aws-appsync-auth-link": "^3.0.7",
"aws-appsync-subscription-link": "^3.1.3",
Expand Down
4 changes: 4 additions & 0 deletions src/context/AppContext/AppContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => {

useEffect(() => {
if (window.ethereum) {
// @ts-ignore
if (previousAccountChange && window.ethereum.removeListener) {
// @ts-ignore
window.ethereum.removeListener(
'accountsChanged',
previousAccountChange,
Expand All @@ -149,7 +151,9 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => {
}

return () => {
// @ts-ignore
if (window.ethereum && window.ethereum.removeListener) {
// @ts-ignore
window.ethereum?.removeListener('accountsChanged', handleAccountChange);
}
};
Expand Down
39 changes: 0 additions & 39 deletions src/redux/sagas/wallet/argentModule.ts

This file was deleted.

Loading

0 comments on commit 2670453

Please sign in to comment.