feat: update transfer_from_multisig to include isNative parameter for associated token address retrieval

This commit is contained in:
A91y
2024-12-28 22:03:00 +05:30
parent 5c2eace633
commit 19b61d1997

View File

@@ -57,7 +57,7 @@ export async function transfer_from_multisig(
});
} else {
// Transfer SPL token
const fromAta = await getAssociatedTokenAddress(mint, vaultPda);
const fromAta = await getAssociatedTokenAddress(mint, vaultPda, true);
const toAta = await getAssociatedTokenAddress(mint, to, true);
const mintInfo = await getMint(agent.connection, mint);
const adjustedAmount = amount * Math.pow(10, mintInfo.decimals);