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

add explorer urls to init and check before print #1033

Closed
wants to merge 1 commit into from

Conversation

camfairchild
Copy link
Collaborator

This PR changes the explorer url output to only output when the network explorer is known in our map of explorer urls

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 )
Copy link
Contributor

Choose a reason for hiding this comment

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

what about testing this using different network_explorer maps? So we test what we're doing here

@camfairchild camfairchild changed the base branch from finney to nobunaga January 2, 2023 18:20
@camfairchild camfairchild changed the base branch from nobunaga to finney January 2, 2023 18:20
@camfairchild
Copy link
Collaborator Author

Close in favour of #1037

@camfairchild camfairchild deleted the only_explorer_if_known_network branch February 7, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants