-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support chain identifiers without `{chain_name}-{revision_number…
…}` pattern (#941) * optional revision number for chain id * add additional methods * update tests * add changelog entry * new test for codecov * revert optional u64 * rename method * update tests * visualize actual testcases * revert method rename * update changelog entry * refactor ChainId::new * rm ChainId::has_revision_number method * refactor ChainId::set_revision_number to ChainId::increment_revision_number * rm old set unset revision_number test * add tests for ChainId::increment_revision_number * add length validation tests * refactor source code for ChainId::new * fix doc test * fix chain identifier length validation * update tests * fix typo * reword changelog entry * reword doc string * fix ChainId::validate_length * add ChainId::validate_length in tests * replace ID with identifier * use validate_prefix_length over validate_identifier_length * optimize validate_prefix_length * rename changelog entry * fix incorrect doc comment Co-authored-by: Farhad Shabani <[email protected]> Signed-off-by: Rano | Ranadeep <[email protected]> * use u64::checked_add * update doc comment * update doc tests * simplify validate_prefix_length * tests for validate_prefix_length * fix tests * add changelog entry * import test_log::test * fix rstest test attribute * cargo fmt * fix typo Co-authored-by: Farhad Shabani <[email protected]> Signed-off-by: Rano | Ranadeep <[email protected]> --------- Signed-off-by: Rano | Ranadeep <[email protected]> Co-authored-by: Farhad Shabani <[email protected]>
- Loading branch information
1 parent
ccca3ff
commit 1ec4b8c
Showing
10 changed files
with
256 additions
and
119 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...g/unreleased/bug-fixes/940-chain-identifiers-without-revision-number-pattern.md
This file contains 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 chain identifiers without the `{chain_name}-{revision_number}` pattern | ||
of Tendermint chains. ([\#940](https://github.com/cosmos/ibc-rs/issues/940)). |
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/bug-fixes/943-optimize-validate-prefix-length.md
This file contains 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 @@ | ||
- Remove redundant `String` creation in `validate_prefix_length` | ||
([\#943](https://github.com/cosmos/ibc-rs/issues/943)). |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.