-
Notifications
You must be signed in to change notification settings - Fork 323
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
Change ChannelId representation to String #2361
Merged
Merged
Commits on Jul 1, 2022
-
Change ChannelId representation to String
ICS 024 does not restrict channel IDs to the "channel-{N}" format.
Configuration menu - View commit details
-
Copy full SHA for 06c1826 - Browse repository at this point
Copy the full SHA 06c1826View commit details -
Configuration menu - View commit details
-
Copy full SHA for be95a53 - Browse repository at this point
Copy the full SHA be95a53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87cee8e - Browse repository at this point
Copy the full SHA 87cee8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5034794 - Browse repository at this point
Copy the full SHA 5034794View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4d00c4 - Browse repository at this point
Copy the full SHA d4d00c4View commit details -
- Create valid IDs with ChannelId::new (could be under valid length). - Format as the inner string with Display. - Derive Debug, no need for a manual definition, which printed it wrong.
Configuration menu - View commit details
-
Copy full SHA for 4381dd1 - Browse repository at this point
Copy the full SHA 4381dd1View commit details
Commits on Jul 4, 2022
-
Relax the channel identifier valid length
Contrary to what is still documented in ICS 024, the minimum length accepted by ibc-go is 8 characters: https://github.com/cosmos/ibc-go/blob/e04964912c266bab923253c48d72cc8ec8b38f5e/modules/core/24-host/validate.go#L76-L81
Configuration menu - View commit details
-
Copy full SHA for 473a96d - Browse repository at this point
Copy the full SHA 473a96dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ac3bb4 - Browse repository at this point
Copy the full SHA 4ac3bb4View commit details -
Tweak test data for excessively long channel IDs
The length limit is now 64 characters in accordance with ICS 024 and ibc-go, but longer than previous code admitted.
Configuration menu - View commit details
-
Copy full SHA for 849f401 - Browse repository at this point
Copy the full SHA 849f401View commit details -
Configuration menu - View commit details
-
Copy full SHA for 945438c - Browse repository at this point
Copy the full SHA 945438cView commit details -
Improve changelog entries for #2361
- File under the modules component. - Add an entry to bug-fixes mentioning the corrected enforcement of the length limit on channel IDs.
Configuration menu - View commit details
-
Copy full SHA for 33838f6 - Browse repository at this point
Copy the full SHA 33838f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72e46f2 - Browse repository at this point
Copy the full SHA 72e46f2View commit details