From 8e29c0c761c5dc1b36b09780e3e159dccc86da64 Mon Sep 17 00:00:00 2001 From: robertu <4065233+robertu7@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:15:03 +0800 Subject: [PATCH] feat(wallet): enable wagmi storage to remember connected wallet address --- lang/en.json | 2 +- src/common/utils/wallet.ts | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/lang/en.json b/lang/en.json index cf4764bfae..2789dea490 100644 --- a/lang/en.json +++ b/lang/en.json @@ -792,7 +792,7 @@ "defaultMessage": "Set" }, "HqnUd1": { - "defaultMessage": "Add hash from IPFS into compatible reader such as", + "defaultMessage": "Add hash from IPFS into compatible reader such as ", "description": "src/components/Dialogs/RssFeedDialog/Content.tsx" }, "HxcjQl": { diff --git a/src/common/utils/wallet.ts b/src/common/utils/wallet.ts index b82e3d5b6a..079d616b57 100644 --- a/src/common/utils/wallet.ts +++ b/src/common/utils/wallet.ts @@ -1,4 +1,4 @@ -import { Chain, configureChains, createConfig, createStorage } from 'wagmi' +import { Chain, configureChains, createConfig } from 'wagmi' import { goerli, mainnet, @@ -63,16 +63,6 @@ export const wagmiConfig = createConfig({ ]), ], publicClient, - /* - FIXME: need to find a way of clearing ens name cache instead of clearing the global cache - */ - storage: createStorage({ - storage: { - getItem: () => null, - setItem: () => null, - removeItem: () => null, - }, - }), }) export const maskAddress = (address: string, prefixLen: number = 8) => {