Skip to content

Commit

Permalink
fix: recursive call in connection State conversion to i32 (#1010)
Browse files Browse the repository at this point in the history
* fix state conversion recursive call

* replace match with casting

Co-authored-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Dhruv D Jain <[email protected]>

* chore: add unclog

* nit

---------

Signed-off-by: Dhruv D Jain <[email protected]>
Co-authored-by: Michal Nazarewicz <[email protected]>
Co-authored-by: Farhad Shabani <[email protected]>
  • Loading branch information
3 people committed Dec 22, 2023
1 parent d52ff0b commit 3ed6023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[ibc-core-connection-types]` Fix recursive call in connection `State`
conversion to `i32` ([#1010](https://github.com/cosmos/ibc-rs/issues/1010))
2 changes: 1 addition & 1 deletion ibc-core/ics03-connection/types/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,6 @@ impl TryFrom<i32> for State {

impl From<State> for i32 {
fn from(value: State) -> Self {
value.into()
value as i32
}
}

0 comments on commit 3ed6023

Please sign in to comment.