From 1cbfdfe7de455007d49450de11aa00f90a288f88 Mon Sep 17 00:00:00 2001 From: Pedro Rezende Date: Wed, 8 Jan 2025 09:39:38 -0300 Subject: [PATCH] feat: adding back 'generating masp params' --- .../namadillo/src/hooks/useIbcTransaction.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/apps/namadillo/src/hooks/useIbcTransaction.tsx b/apps/namadillo/src/hooks/useIbcTransaction.tsx index 29414dcbd..b557d092b 100644 --- a/apps/namadillo/src/hooks/useIbcTransaction.tsx +++ b/apps/namadillo/src/hooks/useIbcTransaction.tsx @@ -133,14 +133,17 @@ export const useIbcTransaction = ({ try { const baseAmount = toBaseAmount(selectedAsset.asset, displayAmount); const { memo: maspCompatibleMemo, receiver: maspCompatibleReceiver } = - shielded ? - await getShieldedArgs( - destinationAddress, - selectedAsset.originalAddress, - baseAmount, - destinationChannel! - ) - : { memo, receiver: destinationAddress }; + await (async () => { + onUpdateStatus?.("Generating MASP parameters..."); + return shielded ? + await getShieldedArgs( + destinationAddress, + selectedAsset.originalAddress, + baseAmount, + destinationChannel! + ) + : { memo, receiver: destinationAddress }; + })(); // Set Keplr option to allow Namadillo to set the transaction fee const chainId = registry.chain.chain_id;