From 2f756909a38674321c893808ce8c6d82330c16e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Thu, 25 Jan 2024 14:10:49 +0000 Subject: [PATCH] fixup! Merge branch 'grarco/fix-shielded-actions' (#2428) --- crates/sdk/src/tx.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/sdk/src/tx.rs b/crates/sdk/src/tx.rs index b9913c9983..fb68d7806e 100644 --- a/crates/sdk/src/tx.rs +++ b/crates/sdk/src/tx.rs @@ -2710,17 +2710,17 @@ pub async fn gen_ibc_shielded_transfer( .await .map_err(|err| TxSubmitError::MaspError(err.to_string()))?; - let mut transfer = token::Transfer { - source: source.clone(), - target: MASP, - token: token.clone(), - amount: validated_amount, - key, - shielded: None, - }; if let Some(shielded_transfer) = shielded_transfer { - transfer.shielded = - Some(Section::MaspTx(shielded_transfer.masp_tx.clone()).get_hash()); + let transfer = token::Transfer { + source: source.clone(), + target: MASP, + token: token.clone(), + amount: validated_amount, + key, + shielded: Some( + Section::MaspTx(shielded_transfer.masp_tx.clone()).get_hash(), + ), + }; Ok(Some(IbcShieldedTransfer { transfer, masp_tx: shielded_transfer.masp_tx,