Skip to content

Commit

Permalink
feat: adding back 'generating masp params'
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Jan 8, 2025
1 parent 0a2abc4 commit 1cbfdfe
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions apps/namadillo/src/hooks/useIbcTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cbfdfe

Please sign in to comment.