-
Notifications
You must be signed in to change notification settings - Fork 94
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 check spec for network list #324
Conversation
eea51fe
to
33e85e1
Compare
cmd/check_spec.go
Outdated
return fmt.Errorf("network_identifiers are required") | ||
} | ||
for _, network := range networks.NetworkIdentifiers { | ||
if types.Hash(network.Network) == types.Hash(Config.Network.Network) && |
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.
Can we just use network.Network == Config.Network.Network?
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.
And also in line 151: network.Blockchain == Config.Network.Blockchain?
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.
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.
Oh I c, both network.Network and Config.Network.Network are pointers, that might be the reason to use types.Hash. Would you mind running the test locally and verify if types.Hash is needed?
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.
Confused myself. Both are strings, not pointers. In this case I don't think we need types.Hash.
33e85e1
to
cde3f69
Compare
Review Error for shiatcb @ 2022-06-09 17:06:06 UTC |
Fixes # .
Motivation
Add check spec for network list
Solution
Open questions