Skip to content

Commit

Permalink
Merge pull request #4224 from thematters/feat/wagmi-storage
Browse files Browse the repository at this point in the history
feat(wallet): enable wagmi storage to remember connected wallet address
  • Loading branch information
robertu7 authored Mar 12, 2024
2 parents 8ae7b69 + 8e29c0c commit 429ae7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 1 addition & 11 deletions src/common/utils/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Chain, configureChains, createConfig, createStorage } from 'wagmi'
import { Chain, configureChains, createConfig } from 'wagmi'
import {
goerli,
mainnet,
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 429ae7f

Please sign in to comment.