add explorer urls to init and check before print#1033
Closed
camfairchild wants to merge 1 commit intofinneyfrom
Closed
add explorer urls to init and check before print#1033camfairchild wants to merge 1 commit intofinneyfrom
camfairchild wants to merge 1 commit intofinneyfrom
Conversation
eduardogr
reviewed
Dec 15, 2022
Comment on lines
+1135
to
+1136
| explorer_root_url = bittensor.__network_explorer_map__[self.network] | ||
| explorer_url = "{root_url}/#/explorer/query/{block_hash}".format( root_url=explorer_root_url, block_hash = block_hash ) |
Contributor
There was a problem hiding this comment.
what about testing this using different network_explorer maps? So we test what we're doing here
Contributor
Author
|
Close in favour of #1037 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR changes the explorer url output to only output when the network explorer is known in our map of explorer urls