-
Notifications
You must be signed in to change notification settings - Fork 440
fix(params): SetBytes should not alter the value bytes #4905
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
base: master
Are you sure you want to change the base?
Conversation
SetBytes is used by the IBC contract to store the commitment bytes. Then the relayer submit the proof of existence of those bytes to the counter party chain, but if the value bytes are different, the proof cannot be verified. This PR updates SetBytes to use directly the store instead of passing by the common `set` method, preventing the value to be aminoJSON encoded. Removed GetRaw/SetRaw since GetBytes/SetBytes can be used as a replacement.
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Hi @tbruyelle . Are you able to fix the failed CI checks? |
Thank you for pointing that out; I hadn't spotted it. I'll take a look. |
|
@jefft0 Tests are fixed, ty |
Co-authored-by: Manfred Touron <[email protected]>
|
I opened this PR (#4926) as an alternative that achieves the goal of the original while maintaining the previous API and ensuring consistency with other calls in this library. |
Since |
SetBytes is used by the IBC contract to store the commitment bytes. Then the relayer submit the proof of existence of those bytes to the counter party chain, but if the value bytes are different, the proof cannot be verified.
This PR updates
SetBytesto use directly the store instead of passing by the commonsetmethod, preventing the value to be aminoJSON encoded.Removed
GetRaw/SetRawsinceGetBytes/SetBytescan be used as a replacement.Note: I can't use
SetRawfrom gno code.