You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @cinojosa0705.
Sorry for the problem you are having. First you need to edit your code to const splToken = require("@solana/spl-token"); instead of const { Token } = require("@solana/spl-token");. Because the createMint, createTransferInstruction functions that the example code is using are all exported from the @solana/spl-token module.
tranminhquanq
added a commit
to tranminhquanq/solana-cookbook
that referenced
this issue
Apr 22, 2023
Hey, so I am following this right here: https://solanacookbook.com/references/basic-transactions.html#how-to-send-spl-tokens
to learn how to send a transaction from one wallet to another, but the code in there doesn't specify what the
splToken
object is and it's not assigned, can someone help?The text was updated successfully, but these errors were encountered: