-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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] can't load dapp with unknown network #4173
[FIX] can't load dapp with unknown network #4173
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
This issue its fixed on this PR |
…ps://github.com/MetaMask/metamask-mobile into fix/3391-can-not-load-dapp-with-unknown-network
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Scenario 1: https://recordit.co/81O3dxxE0V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Description
The problem was when we browse "totee.xyz" or "ebisusbay.xyz" and we are in the custom network it gives an EnsIpfsResolver error.
That error comes from the fact that we were verifying if the domain it's an ENS and actually is a top-level domain ending in '.xyz'.
Proposed Solution
The proposed solution it's that when the ens throws an error because doesn't have an ens for the custom chain id and ends in ".xyz" and ".test", we add it to the ensIgnoreList and return the full URL "https://ebisusbay.xyz"
Also changed the "substr" deprecated javascript method for "slice".
Code Impact
Low
Screenshots/Recordings
Solution:
https://recordit.co/4zp4r2XzjG
Test Cases
Case1:
Checklist
Issue
Progresses #3391