Closed seanchen1991 closed 1 month ago
Attention: Patch coverage is 0%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 67.33%. Comparing base (
86a0ee0
) to head (c3cbca4
).
Files | Patch % | Lines |
---|---|---|
ibc-core/ics23-commitment/types/src/commitment.rs | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I think this is a reasonable fix. However, we may want to consider whether it is fine for breaking compatibility in this case. Let's wait for @rnbguy and @romac to review and discuss the changes.
I think that's fine, better to break compatibility now and have consistent serialization than the reverse.
Sounds good. @seanchen1991 let's add a changelog to indicate the breaking change?
@soareschen, you mentioned that you opened a fork that manually implements deserialization from String
. Would that route be preferable than opting to auto-derive Serialize
?
Oh, I just saw this comment, which makes me think we should just opt to auto-derive Serialize
instead of manually implement Deserialize
.
Yes, the custom fix is at https://github.com/cosmos/ibc-rs/tree/soares/fix-commitment-prefix-deserialize. But we should serialize and deserialize it as bytes, as the current behavior for serializing non-UTF8 commitment prefix is incorrect.
Closes: #1229
Description
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.