-
Notifications
You must be signed in to change notification settings - Fork 100
fix: support chain identifiers without {chain_name}-{revision_number}
pattern
#941
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c8d3584
optional revision number for chain id
rnbguy f93ea96
add additional methods
rnbguy 6a6fc4f
update tests
rnbguy 674501f
add changelog entry
rnbguy 4296b0e
new test for codecov
rnbguy 03301c2
revert optional u64
rnbguy a068d57
rename method
rnbguy f0c8c21
update tests
rnbguy 840fabd
visualize actual testcases
rnbguy 60cf0cf
revert method rename
rnbguy 6c89049
update changelog entry
rnbguy a3b6fd9
refactor ChainId::new
rnbguy b8534b7
rm ChainId::has_revision_number method
rnbguy 51d5770
refactor ChainId::set_revision_number to ChainId::increment_revision_…
rnbguy 63ac38f
rm old set unset revision_number test
rnbguy 257152e
add tests for ChainId::increment_revision_number
rnbguy ad57856
add length validation tests
rnbguy ebe39ea
refactor source code for ChainId::new
rnbguy 20302f0
fix doc test
rnbguy 6cc3d28
fix chain identifier length validation
rnbguy 23ca22e
update tests
rnbguy 091f291
fix typo
rnbguy 5782666
reword changelog entry
rnbguy 22f5b8f
reword doc string
rnbguy 02fb312
fix ChainId::validate_length
rnbguy a19ac45
add ChainId::validate_length in tests
rnbguy e8375b0
replace ID with identifier
rnbguy a4648d7
use validate_prefix_length over validate_identifier_length
rnbguy 69301f8
optimize validate_prefix_length
rnbguy 5302611
rename changelog entry
rnbguy 1ee65f2
fix incorrect doc comment
rnbguy b53b5bd
use u64::checked_add
rnbguy 784633b
update doc comment
rnbguy c7c6619
update doc tests
rnbguy a850f06
simplify validate_prefix_length
rnbguy 6c7ae89
tests for validate_prefix_length
rnbguy 8281ce8
fix tests
rnbguy 198b991
add changelog entry
rnbguy c0577b7
import test_log::test
rnbguy ae09ee2
fix rstest test attribute
rnbguy 0e41b74
cargo fmt
rnbguy 94ede00
fix typo
rnbguy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/bug-fixes/940-optional-revision-number-in-chain-id.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Support `ChainId`s without revision numbers | ||
([\#940](https://github.com/cosmos/ibc-rs/issues/940)). |
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
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.
Uh oh!
There was an error while loading. Please reload this page.