Skip to content

change createMintToInstruction to createMintToCheckedInstruction#369

Open
guagua777 wants to merge 1 commit into
blueshift-gg:masterfrom
guagua777:master
Open

change createMintToInstruction to createMintToCheckedInstruction#369
guagua777 wants to merge 1 commit into
blueshift-gg:masterfrom
guagua777:master

Conversation

@guagua777

Copy link
Copy Markdown

Although this method works, it will throw errors during challenges and harm the experience for new users. Once they become familiar, they will naturally choose which APIs to use.

change method createMintToInstruction to createMintToCheckedInstruction

image

…d harm the experience for new users. Once they become familiar, they will naturally choose which APIs to use.

change method createMintToInstruction  to createMintToCheckedInstruction
@dhl

dhl commented Mar 2, 2026

Copy link
Copy Markdown
Member

@guagua777 we appreciate you taking the time to help improve content_

I agree that mintToChecked adds another layer of safety for beginners, and introducing it in the course is probably better for someone new to the token standard.

In addition to the changing the instruction, the Abstracted Instruction part should also be updated to stay consistent; otherwise, it will be confusing to the learners.

What do you think?


// 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

@dhl dhl added the blocked label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants