Skip to content

Commit

Permalink
Reflect ibc-rs PR 1318 changes (#191)
Browse files Browse the repository at this point in the history
* Update ibc and ibc-query dependencies to 0.54

* Update basecoin to reflect ibc-rs PR 1318
  • Loading branch information
seanchen1991 authored Aug 22, 2024
1 parent 4f35129 commit d833faa
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 65 deletions.
108 changes: 54 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ tracing = "0.1.40"
tracing-subscriber = "0.3.18"

# ibc dependencies
ibc = { version = "0.53.0", default-features = false, features = [ "serde" ] }
ibc-query = { version = "0.53.0", default-features = false }
ibc = { version = "0.54.0", default-features = false, features = [ "serde" ] }
ibc-query = { version = "0.54.0", default-features = false }
ibc-proto = { version = "0.47.0", default-features = false }
ics23 = { version = "0.12", default-features = false }

Expand All @@ -45,8 +45,8 @@ tendermint-rpc = { version = "0.38", default-features = false }
tower-abci = { version = "0.16" }

[patch.crates-io]
ibc = { git = "https://github.com/cosmos/ibc-rs.git", rev = "6c7a65e" }
ibc-query = { git = "https://github.com/cosmos/ibc-rs.git", rev = "6c7a65e" }
ibc = { git = "https://github.com/cosmos/ibc-rs.git", rev = "a36348b" }
ibc-query = { git = "https://github.com/cosmos/ibc-rs.git", rev = "a36348b" }

# for tendermint 0.38
tower-abci = { git = "https://github.com/informalsystems/tower-abci", rev = "0992541" }
14 changes: 7 additions & 7 deletions basecoin/modules/src/ibc/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ where
ACCOUNT_PREFIX,
&cosmos_adr028_escrow_address(port_id, channel_id),
)
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;

Ok(account_id)
}
Expand Down Expand Up @@ -379,12 +379,12 @@ where
let from = from_account
.to_string()
.parse()
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;
let to = self
.get_escrow_account(port_id, channel_id)?
.to_string()
.parse()
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;
let coins = vec![Coin {
denom: Denom(coin.denom.to_string()),
amount: coin.amount.into(),
Expand All @@ -404,11 +404,11 @@ where
.get_escrow_account(port_id, channel_id)?
.to_string()
.parse()
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;
let to = to_account
.to_string()
.parse()
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;
let coins = vec![Coin {
denom: Denom(coin.denom.to_string()),
amount: coin.amount.into(),
Expand All @@ -425,7 +425,7 @@ where
let account = account
.to_string()
.parse()
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;
let coins = vec![Coin {
denom: Denom(amt.denom.to_string()),
amount: amt.amount.into(),
Expand All @@ -443,7 +443,7 @@ where
let account = account
.to_string()
.parse()
.map_err(|_| TokenTransferError::ParseAccountFailure)?;
.map_err(|_| TokenTransferError::FailedToParseAccount)?;
let coins = vec![Coin {
denom: Denom(amt.denom.to_string()),
amount: amt.amount.into(),
Expand Down

0 comments on commit d833faa

Please sign in to comment.