chainlink-solana
chainlink-solana copied to clipboard
Token Deploy command does not mint the correct amount
Gauntlet currently uses Spl token library to interact with the Token program. This library only exports the mintTo instruction, which is not as precise as the mintToChecked one.
Anchor will release a token utility soon, and the spl token made a major refactor on a new release, which has these instructions available.
Either update the command when the new anchor release is available, or refactor every token functionality in gauntlet to use the new spl token library.
anchor: https://github.com/project-serum/anchor/blob/master/ts/src/spl/index.ts#L8 spl: https://github.com/solana-labs/solana-program-library/tree/master/token/js