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: ens resolution only supported on mainnet #29

Merged
merged 5 commits into from
May 1, 2024
Merged

Conversation

k-g-j
Copy link
Contributor

@k-g-j k-g-j commented May 1, 2024

Description

Only support ENS resolution when the user is on mainnet. Check currently selected chain ID in Snap homepage and notify the user that ENS is only available on mainnet. If user is not on mainnet, and inputs an ENS name, the snap will show the error message "ENS is only supported on Ethereum mainnet"

fixes: https://github.com/MetaMask/accounts-planning/issues/402

Demo

Screen.Recording.2024-05-01.at.12.29.29.PM.mov

@k-g-j k-g-j requested a review from a team as a code owner May 1, 2024 16:25
@k-g-j k-g-j changed the title fix: ens resolution fix: ens resolution only supported on mainnet May 1, 2024
Copy link
Contributor

@owencraston owencraston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't able to test but the code looks good.

@k-g-j k-g-j merged commit ddd06c3 into main May 1, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants