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 link to etherscan/eigenlayer on telemetry #19

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

v9n
Copy link
Member

@v9n v9n commented Jul 16, 2024

No description provided.

Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

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

LGTM, I have left a comment.


func IsMainnet() bool {
return CurrentChainEnv == HoleskyEnv
}
Copy link
Member

Choose a reason for hiding this comment

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

I would build a map here for scalability, returning the URL based on the ChainEnv value.

In a few months we would have more chains to support, so the function name IsMainnet will become ambiguous.

Copy link
Member Author

Choose a reason for hiding this comment

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

sound good. updated to use hash map so we can add more in the future.

@v9n v9n merged commit fa6335b into main Jul 16, 2024
2 checks passed
@v9n v9n deleted the fix-link-to-etherscan-or-eigendashboard-to-right-env branch July 23, 2024 23:34
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