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] can't load dapp with unknown network #4173

Merged
merged 15 commits into from
Jul 26, 2022

Conversation

tommasini
Copy link
Contributor

@tommasini tommasini commented Apr 27, 2022

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

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Progresses #3391

@tommasini tommasini requested a review from a team as a code owner April 27, 2022 22:56
@github-actions
Copy link
Contributor

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.

@tommasini
Copy link
Contributor Author

This issue its fixed on this PR

@tommasini tommasini changed the title Fix can't load dapp with unknown network [FIX] can't load dapp with unknown network May 17, 2022
@tommasini tommasini added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jun 2, 2022
Copy link
Contributor

@sethkfman sethkfman left a 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

@Fatxx Fatxx added needs-qa Any New Features that needs a full manual QA prior to being added to a release. Mobile QA board and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jun 30, 2022
@chrisleewilcox chrisleewilcox self-assigned this Jul 7, 2022
@chrisleewilcox chrisleewilcox added QA in Progress QA has started on the feature. and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Jul 7, 2022
@chrisleewilcox
Copy link
Contributor

Copy link
Contributor

@chrisleewilcox chrisleewilcox left a comment

Choose a reason for hiding this comment

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

LGTM.

@chrisleewilcox chrisleewilcox added QA Passed A successful QA run through has been done and removed QA in Progress QA has started on the feature. labels Jul 7, 2022
@tommasini tommasini added the release-5.5.0 PRs for v5.5.0 release label Jul 12, 2022
@tommasini tommasini merged commit 89b19f3 into main Jul 26, 2022
@tommasini tommasini deleted the fix/3391-can-not-load-dapp-with-unknown-network branch July 26, 2022 14:48
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-5.5.0 PRs for v5.5.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants