solana-program/token

CreateIdempotent does not contain opcode 1.

Closed this issue · 4 comments

getCreateAssociatedTokenIdempotentInstruction does not specify any data. The data it should specify is Uint8Array.of(1).

Hi Kenta, I'm a bit confused. Aside from the instruction discriminator (which is taken into account in the generated code), the CreateIdempotent instruction of the Associated Token program doesn't seem to accept any additional data.

Right - the instruction discriminator (1) in this case I believe does not get included into the instruction data. The instruction data for CreateIdempotent is undefined.

Oh I see! Well spotted, I'll fix that today. 🫡

This should be fixed in version 0.1.4. 🙏