Skip to content

Commit

Permalink
Merge pull request #43 from darwinia-network/fix/ens_name
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest committed Feb 13, 2025
2 parents ae0df26 + b0ee89a commit 366c2b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/header-controls/hooks/useConnectButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function useConnectButton() {

const { data: name } = useEnsName({
address,
chainId: chain?.id // resolution always starts from L1
chainId: 1 // resolution always starts from L1
});

console.log('ens name', name);
Expand Down
3 changes: 2 additions & 1 deletion src/config/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {

import { getChains } from '@/utils/chain';
import { getBlockQueryOptions } from 'wagmi/query';
import { mainnet } from 'wagmi/chains';

export const projectId = import.meta.env.VITE_PROJECT_ID;

Expand Down Expand Up @@ -46,7 +47,7 @@ export const config = getDefaultConfig({
wallets: [talismanWallet, okxWallet, imTokenWallet, trustWallet, safeWallet]
}
],
chains: getChains(),
chains: [mainnet, ...getChains()],
storage: createStorage({
storage: cookieStorage
})
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 366c2b2

Please sign in to comment.