Closed josephtaylor closed 1 year ago
collectionDetails := token_metadata.CollectionDetailsV1{
Size: 0,
}
var details token_metadata.CollectionDetails
details = &collectionDetails
token_metadata.CollectionDetails
is an interface, and should be used without the pointer to it (note var details token_metadata.CollectionDetails
).
wow, sorry bout that.
I fixed that but didn't have much luck with my generated clients doing the CreateMetadataAccountV3 instruction, kept getting serialization errors. So i've fallen back to V2 for now which you've already got in metaplex-go
thanks again!
Hello! I'm trying to utilize
anchor-go
to generate code for some of the newer metaplex instructions.Running into an issue with a new field they added to NFTs called
CollectionDetails
.I used
shank
from metaplex to generate IDL from thetoken-metadata
program, and theCollectionDetails
field looks like:Which results in the following go code generated from
anchor-go
:Is that correct? What's the purpose of the
isCollectionDetails()
function? (sorry, new to anchor)Then in my own code i'm trying to do something like:
And the compiler is getting upset saying that
CollectionDetailsV1
can't be assigned toCollectionDetails
even thoCollectionDetailsV1
definitely implements that interface.Any help would be greatly appreciated. Thanks so much for these libraries!