chainlink-solana icon indicating copy to clipboard operation
chainlink-solana copied to clipboard

Token Deploy command does not mint the correct amount

Open RodrigoAD opened this issue 3 years ago • 0 comments

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

RodrigoAD avatar Mar 16 '22 13:03 RodrigoAD