Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <[email protected]>
  • Loading branch information
onur-ozkan committed Jan 30, 2023
1 parent b3f43ba commit 4a7018b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions mm2src/coins/tendermint/tendermint_coin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()))?;

Expand Down

0 comments on commit 4a7018b

Please sign in to comment.