From b937635a3bcf46cc48849b4a48634a8d14dcc55a Mon Sep 17 00:00:00 2001 From: Ilan Gitter <8359193+gitteri@users.noreply.github.com> Date: Tue, 5 May 2026 13:26:28 -0600 Subject: [PATCH] fix: use destination wallet input when minting ABL tokens The mint flow was ignoring the Destination Wallet field and always minting to the connected wallet's ATA. Read the input value and fall back to the connected wallet only when empty. --- .../src/components/abl-token/abl-token-manage-token-detail.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tokens/token-2022/transfer-hook/allow-block-list-token/src/components/abl-token/abl-token-manage-token-detail.tsx b/tokens/token-2022/transfer-hook/allow-block-list-token/src/components/abl-token/abl-token-manage-token-detail.tsx index 051b98773..43851070a 100644 --- a/tokens/token-2022/transfer-hook/allow-block-list-token/src/components/abl-token/abl-token-manage-token-detail.tsx +++ b/tokens/token-2022/transfer-hook/allow-block-list-token/src/components/abl-token/abl-token-manage-token-detail.tsx @@ -100,10 +100,11 @@ function TokenManagement({ tokenInfo }: { tokenInfo: TokenInfo }) { if (!publicKey || !tokenInfo) return; try { + const recipient = destinationWallet.trim() ? new PublicKey(destinationWallet.trim()) : publicKey; await mintTo.mutateAsync({ mint: new PublicKey(tokenInfo.address), amount: new BN(mintAmount), - recipient: publicKey, + recipient, }); console.log("Minted successfully"); } catch (err) {