CreateIdempotent does not contain opcode 1.
Closed this issue · 4 comments
lithdew commented
getCreateAssociatedTokenIdempotentInstruction does not specify any data. The data it should specify is Uint8Array.of(1).
lorisleiva commented
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.
lithdew commented
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.
lorisleiva commented
Oh I see! Well spotted, I'll fix that today. 🫡
lorisleiva commented
This should be fixed in version 0.1.4. 🙏