-
Notifications
You must be signed in to change notification settings - Fork 619
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
Mark fields not needing to be nullable as with gogoproto.nullable = false
option
#6550
Comments
thinking about this the only place I'd add In addition, thinking of how these protos would be generated in better typed languages like Rust, it makes sense to have the fields |
marked hops as stated, going to slap needs discussion on it so we can talk about it for a quick minute. Pertains to |
I was originally in favour of using a non-nullable field as I couldn't see a benefit from a go perspective. But I did some investigation. Both protobuf and json act in synchrony regarding the following behaviour. Pointer, empty = no field emitted/encoded Given this. By using nullable:
|
This applies to both fields on the MsgTransfer and fields of the new ForwardingInfo message.
Surfaced during internal walkthrough of ics20 v2 forwarding (commit efcfa5d)
For Admin Use
The text was updated successfully, but these errors were encountered: