-
Notifications
You must be signed in to change notification settings - Fork 79
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
ics26_routing: Impl Protobuf<Any>
for MsgEnvelope
#586
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #586 +/- ##
==========================================
- Coverage 72.85% 72.76% -0.10%
==========================================
Files 126 126
Lines 15705 15725 +20
==========================================
Hits 11442 11442
- Misses 4263 4283 +20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Reference to upstream PR: cosmos/ibc-proto-rs#73 |
Thanks for this improvement suggestion. Note that since each message type provides a However, from what I've seen, the typical conversion flow to work with the IBC-rs implementation is from |
And a quick request. I’d appreciate for such cases if you open a GitHub issue in advance, so we could keep our changelog and plannings consistent. This helps us to search, track and prioritize our issues in a more efficient way. 🙏🏻 🌷 |
Will do regarding issues! To respond to the use case: I need to serialize |
In fact, this comment applies here as well. Since we are going towards making our msg structs private (issue #324), we'd prefer only to maintain necessary parts/conversions needed to work with the IBC-rs implementation. |
I think this should be fine as long as there's some way to call |
That's right. We need to make changes to the domain types from time to time, which is a breaking change every time (which won't work when we're on version 1.x). |
Got it, in that case I'll close this PR and await the API changes once the msg structs are private. |
Closes: #XXX
Description
Implement
Protobuf<Any>
forMsgEnvelope
so that serialization ofMsgEnvelope
types is possible. This matches the already-existingTryFrom<Any>
implementation.Using
msg.encode_vec().unwrap()
is safe because.encode_vec()
will never return an error, as the buffer will always be constructed to be the correct size. I will submit a follow-up PR to ibc-proto to update the return type ofencode_vec()
.PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.