-
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
Hide links to etherscan when no block explorer is specified for a custom network #5631
Comments
We should disable Etherscan links for custom networks until we find a simple way to let people enter their own custom block explorers when using the custom RPC feature |
The way for people to enter custom block explorers is probably an optional field alongside the chainID, symbol, and nickname "Advanced options" for custom RPC. We could recognize some specific template placeholder to be replaced with the transaction ID, and append the transaction ID to the end of that URL if the placeholder is not found in a non-empty blockchain URL field value that is otherwise a reasonably well-formatted URL. |
As a UI design point for feedback, are there any objections to changing "View on Etherscan" to "View on block explorer" more generally, when editing to address this issue? |
Note: I use a custom network that points to mainnet for security (don't trust third party node providers and all that jazz). In whatever UI is created, there should be an option to mark a custom endpoint as mainnet. Also, I have multiple custom endpoints, some of them point at private networks (no block explorer). |
@MicahZoltu The Network Settings menu requested here would allow you to just replace the default provider for mainnet, and leave out block explorers for networks that don't have them. |
@bdresser this is an old issue, but the notification link is still pointing to
Since the option |
It would also be nice to drop "View on etherscan" altogether when there is no block explorer for a custom network. |
@Gudahtt, I'll start working on this 🙂 |
These two PR's should fix this issue 🙂 |
@BboyAkers thanks for the PR's! Since you made those fixes, I believe you will be able to fix what I mentioned 😃 . In your last PR's the link was removed if the network is not a valid prefix for etherscan.io. However, |
Hmmm interesting, I'll dig into this @IvanRF 🙂 |
@BboyAkers Excellent! thanks! 👏 👏 👏 |
Describe the bug
The transaction confirmation popup looks like this:
Clicking on it will open Etherscan to view the transaction on mainnet.
However, if the transaction was not on mainnet, Etherscan will (most likely) not find the transaction OR show information about a transaction other than the one the user initiated. It definitely will not show information about the transaction that was just confirmed on a private network.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A. "View on Etherscan" does not appear if the transaction was executed on a private network. In this case, the popup should not contain a link to Etherscan and Etherscan should not open if clicking on the popup.
B. If the transaction was executed on a large public testnet, it should open the Etherscan for that testnet (example links: Rinkeby, Ropsten, Kovan). I have not tested to see if this is already implemented.
C. In cases where there is an Etherscan view of the transaction (large public net), there is a line break before the word "View." (This might be a separate Issue.)
Browser details (please complete the following information):
The text was updated successfully, but these errors were encountered: