Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: revert change resulting in slow identity resolution #1947

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

dschlabach
Copy link
Contributor

@dschlabach dschlabach commented Feb 10, 2025

What changed? Why?
This PR fixes logic for fetching Basenames and ENS names in getName.

In the case where the chain is Base and the user does not have a Basename, we hit an arm in the if/else where nothing is returned, allowing us to hit the case where we fallback to the ENS name.

In that case, we want to be sure that we read from mainnet. Instead, we were attempting to read from Base, which caused retries and ultimately a timeout that returned null.

This reverts the prior change here.

Notes to reviewers

How has it been tested?

Copy link

vercel bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 11:41pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 11:41pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 11:41pm

@dschlabach dschlabach merged commit 52ed0ff into main Feb 10, 2025
16 checks passed
@dschlabach dschlabach deleted the dms/wallet-slow branch February 10, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants