Skip to content

Commit 11e61af

Browse files
authored
Refactor comments for clarity in warm-up instruction
1 parent a4a8633 commit 11e61af

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

toolkits/indexing-tokens/warm-up-instruction.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const payer = Keypair.fromSecretKey(
4444
recipient.publicKey,
4545
);
4646

47-
// Warm up: load compressed tokens (cold) to sender's hot balance
48-
// Returns [] if already hot — safe to call unconditionally
47+
// Warm up: load compressed tokens to sender's light-token associated token account
48+
// (hot balance). Returns [] if already hot
4949
const loadIxs = await createLoadAtaInstructions(
5050
rpc,
5151
senderAta,
@@ -60,7 +60,7 @@ const payer = Keypair.fromSecretKey(
6060
await sendAndConfirmTx(rpc, loadTx);
6161
}
6262

63-
// Trade: transfer from hot balance
63+
// Transfer from hot balance
6464
const transferIx = createTransferInterfaceInstruction(
6565
senderAta,
6666
recipientAta,
@@ -73,4 +73,4 @@ const payer = Keypair.fromSecretKey(
7373
const signature = await sendAndConfirmTx(rpc, tradeTx);
7474

7575
console.log("Tx:", signature);
76-
})();
76+
})();

0 commit comments

Comments
 (0)