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 private network to network enum #7
Conversation
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.
Other than the 1 suggestion I think it looks great.
// We don't derive Serialize because it is manually implemented using AsRef<str> and it would | ||
// break a lot of things since Serialize is `kebab-case` vs Deserialize `snake_case`. | ||
// This means that the Network type is not "round-trippable", because the Serialize and Deserialize | ||
// implementations do not use the same case style. | ||
|
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.
Did you find out why is this the case? It doesn't really make sense to me to make the network type not "round-trippable"
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.
not sure about that, but thats what I found about this
gakonst/ethers-rs#2038 (comment)
gakonst/ethers-rs#2268 (comment)
https://github.com/gakonst/ethers-rs/pull/2270/files
Seems like it was hot-fixed and tests for "round-trippable" were added
…n/corebc-rs into feature/private_network
…n/corebc-rs into feature/private_network
Also I removed utils::NetworkType and replaced it with types::Network. The same logic was written twice. |
No description provided.