From 662db94f65962ad6a0e3cfb2317ebef0293d47bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dean=20=E5=88=A9=E8=BF=AA=E6=81=A9?= <10921578+deanmlittle@users.noreply.github.com> Date: Tue, 15 Aug 2023 21:02:45 +0800 Subject: [PATCH] Update spl_mint.ts --- ts/cluster1/spl_mint.ts | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/ts/cluster1/spl_mint.ts b/ts/cluster1/spl_mint.ts index 07c48fb..26bcf82 100644 --- a/ts/cluster1/spl_mint.ts +++ b/ts/cluster1/spl_mint.ts @@ -16,24 +16,14 @@ const mint = new PublicKey(""); (async () => { try { - const ata = await getOrCreateAssociatedTokenAccount( - connection, - keypair, - mint, - keypair.publicKey - ); - console.log(`Your ata is: ${ata.address.toBase58()}`); + // Create an ATA + // const ata = ??? + // console.log(`Your ata is: ${ata.address.toBase58()}`); - const mintTx = await mintTo( - connection, - keypair, - mint, - ata.address, - keypair, - 1000n * token_decimals - ) - console.log(`Your mint txid: ${mintTx}`); + // Mint to ATA + // const mintTx = ??? + // console.log(`Your mint txid: ${mintTx}`); } catch(error) { console.log(`Oops, something went wrong: ${error}`) } -})() \ No newline at end of file +})()