gagliardetto / metaplex-go

Go clients for the Metaplex Solana programs
MIT License
42 stars 30 forks source link

Unable to decode instruction #9

Closed sparkycj328 closed 2 years ago

gagliardetto commented 2 years ago

Did you call candy_machinev2.SetProgramID(candyMachineProgramID)?

Something like this (but for v2): https://github.com/gagliardetto/metaplex-go/blob/5814aedc5ee8a0d679ddd0354d70c51cd73c4427/examples/candy/main.go#L111-L114

gagliardetto commented 2 years ago

You can call the SetProgramID func just once. Make sure it's not called somewhere else.