Repository navigation
Conversation
|
PR author is not in the allowed authors list. |
kriss39
force-pushed
the
fix/gmp-genesis-remote-sender
branch
from
September 13, 2026 20:51
09e25ed to
2bf6e3c
Compare
Contributor
Author
|
@srdtrk @gjermundgaraba gentle ping on this and #9078, #9079, #9080. DCO passes on all four and they are open for review whenever you have time. |
kriss39
force-pushed
the
fix/gmp-genesis-remote-sender
branch
from
October 21, 2026 10:11
c936c24 to
41e3ad6
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9077 +/- ##
==========================================
+ Coverage 66.83% 66.84% +0.01%
==========================================
Files 329 329
Lines 17497 17503 +6
==========================================
+ Hits 11694 11700 +6
Misses 5069 5069
Partials 734 734
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
kriss39
force-pushed
the
fix/gmp-genesis-remote-sender
branch
from
November 29, 2026 08:22
a1182da to
8ff877b
Compare
AccountIdentifier.Sender is an opaque identifier on the counterparty chain (for example an EVM hex address or a bech32 address with a foreign prefix). GenesisState.Validate and InitGenesis validated it with sdk.AccAddressFromBech32, so any exported state containing an ICS27 account created by a remote sender failed validation and could not be re-imported. Validate the sender the same way GMPPacketData.ValidateBasic does (non-empty, bounded length) via a new AccountIdentifier.Validate helper, and add an export -> validate -> import round-trip regression test. Signed-off-by: Kriss <93033289+kriss39@users.noreply.github.com>
kriss39
force-pushed
the
fix/gmp-genesis-remote-sender
branch
from
November 29, 2026 08:25
8ff877b to
6f9e7e8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
GenesisState.ValidateandInitGenesisin27-gmpvalidatedAccountId.Senderwithsdk.AccAddressFromBech32. The sender is an identifier on the counterparty chain (an EVM hex address or a bech32 address with a foreign prefix), so any exported state that contained an ICS27 account created by a remote sender failed validation and could not be re-imported.This PR adds
AccountIdentifier.Validate(client ID, non-empty and bounded sender — the same rules asGMPPacketData.ValidateBasic— and salt length) and uses it from bothGenesisState.ValidateandInitGenesis. Existing "invalid sender" test cases are replaced by empty / too-long sender cases plus a success case with an EVM hex sender, andTestGenesisRoundTripRemoteSendercovers the export → validate → import round trip (fails onmainwithdecoding bech32 failed).closes: #9072
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/) if anything is changed. (n/a — no documented behaviour changes)godoccomments if relevant.Files changedin the GitHub PR explorer.