Skip to content

Commit

Permalink
fix: revert change resulting in slow identity resolution (#1947)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschlabach authored Feb 10, 2025
1 parent 19bd223 commit 52ed0ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/identity/utils/getName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getName = async ({
);
}

const client = getChainPublicClient(chain);
let client = getChainPublicClient(chain);

if (chainIsBase) {
const addressReverseNode = convertReverseNodeToBytes(address, base.id);
Expand All @@ -45,6 +45,9 @@ export const getName = async ({
}
}

// Default to mainnet
client = getChainPublicClient(mainnet);

// ENS username
const ensName = await client.getEnsName({
address,
Expand Down

0 comments on commit 52ed0ff

Please sign in to comment.