-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[Fixed] Hide links to etherscan when no block explorer is specified for a custom network #10455
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. |
I have read the CLA Document and I hereby sign the CLA |
These changes look good! Just need to run |
@Gudahtt done 🙂 |
@Gudahtt should I be pushing the yarn.lock? |
nvm just pushed it 🙂 |
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!
Fixes: #5631
Explanation:
Once this PR is merged, etherscan-link PR, I'll update the latest version of etherscan-link in the package.json and these changes will be valid.
In these PR, if there is a custom network implemented we set the
url
to an empty string so it doesn't render an invalid etherscan url. We then also conditionally render theView on Etherscan
text if the url is empty.Manual testing steps: