Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/content/courses/spl-token-with-web3js/mint-to/de.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also update the variable to mintToCheckedInstruction

mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
3 changes: 2 additions & 1 deletion src/app/content/courses/spl-token-with-web3js/mint-to/en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
3 changes: 2 additions & 1 deletion src/app/content/courses/spl-token-with-web3js/mint-to/fr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
3 changes: 2 additions & 1 deletion src/app/content/courses/spl-token-with-web3js/mint-to/id.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
3 changes: 2 additions & 1 deletion src/app/content/courses/spl-token-with-web3js/mint-to/uk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
3 changes: 2 additions & 1 deletion src/app/content/courses/spl-token-with-web3js/mint-to/vi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const createAtaInstruction = createAssociatedTokenAccountIdempotentInstruction(
);

// Mint tokens to ATA
const mintToInstruction = createMintToInstruction(
const mintToInstruction = createMintToCheckedInstruction(
mint.publicKey, // mint
tokenAccount, // destination
keypair.publicKey, // mint authority
1_000e6, // amount of tokens
6, // decimal
);

const transaction = new Transaction().add(
Expand Down