Skip to content

Commit

Permalink
use request ticker itself instead of platform one
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Feb 22, 2023
1 parent dcba19b commit 4dbbbad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions mm2src/coins/rpc_command/tendermint/ibc_transfer_channels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ pub async fn ibc_transfer_channels(ctx: MmArc, req: IBCTransferChannelsRequest)
match coin {
MmCoinEnum::Tendermint(coin) => coin.get_ibc_transfer_channels(req).await,
MmCoinEnum::TendermintToken(token) => token.platform_coin.get_ibc_transfer_channels(req).await,
coin => MmError::err(IBCTransferChannelsRequestError::UnsupportedCoin(
coin.platform_ticker().to_owned(),
)),
_ => MmError::err(IBCTransferChannelsRequestError::UnsupportedCoin(req.coin)),
}
}
4 changes: 2 additions & 2 deletions mm2src/coins/rpc_command/tendermint/ibc_withdraw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pub async fn ibc_withdraw(ctx: MmArc, req: IBCWithdrawRequest) -> WithdrawResult
match coin {
MmCoinEnum::Tendermint(coin) => coin.ibc_withdraw(req).compat().await,
MmCoinEnum::TendermintToken(token) => token.ibc_withdraw(req).compat().await,
coin => MmError::err(WithdrawError::UnexpectedUserAction {
_ => MmError::err(WithdrawError::UnexpectedUserAction {
expected: format!(
"Only tendermint based coins are allowed for `ibc_withdraw` operation. Current coin: {}",
coin.platform_ticker()
req.coin
),
}),
}
Expand Down

0 comments on commit 4dbbbad

Please sign in to comment.