From 4a7018be3e66528aedc11b94ad5096fa12ff4a3b Mon Sep 17 00:00:00 2001 From: ozkanonur Date: Mon, 30 Jan 2023 19:38:56 +0300 Subject: [PATCH] save Signed-off-by: ozkanonur --- mm2src/coins/tendermint/tendermint_coin.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/mm2src/coins/tendermint/tendermint_coin.rs b/mm2src/coins/tendermint/tendermint_coin.rs index d079ead9b6..fa220ef0a4 100644 --- a/mm2src/coins/tendermint/tendermint_coin.rs +++ b/mm2src/coins/tendermint/tendermint_coin.rs @@ -606,19 +606,15 @@ impl TendermintCoin { .as_nanos() .into_or_max(); - let msg_transfer = MsgTransfer { - source_port: IBC_OUT_SOURCE_PORT.to_owned(), - source_channel: req.ibc_source_channel, - sender: coin.account_id.clone(), - receiver: to_address, - token: Coin { + let msg_transfer = MsgTransfer::new_with_default_timeout( + req.ibc_source_channel.clone(), + coin.account_id.clone(), + to_address.clone(), + Coin { denom: coin.denom.clone(), amount: amount_denom.into(), }, - timeout_height: None, - timeout_timestamp: timestamp_as_nanos + IBC_OUT_TIMEOUT_IN_NANOS, - // memo: Some(memo.clone()), - } + ) .to_any() .map_to_mm(|e| WithdrawError::InternalError(e.to_string()))?;