developer-content icon indicating copy to clipboard operation
developer-content copied to clipboard

updated token-program.md course

Open Ozodimgba opened this issue 1 year ago • 0 comments

Problem

Some of the methods used in the @solana/spl-token package in this course have been updated and might cause confusion for learners interacting with the package presently

Summary of Changes

  • createMint now uses createInitializeMint2Instruction,
  • createAssociatedTokenAccount method replaced asynchronous getAssociatedTokenAddress calls with synchronous getAssociatedTokenAddressSync to make sure token account is only created when none exists
  • allowOwnerOffCurve parameter is a necessary parameter for certain use case like vaults and interactions with multi sig wallets. see the @solana/spl-token commit here

Ozodimgba avatar Sep 19 '24 19:09 Ozodimgba