You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Unfortunate duplication of token metadata so that IDL picks it up.#[derive(AnchorSerialize,AnchorDeserialize,Clone,Debug)]pubstructCreator{pubaddress:Pubkey,pubverified:bool,// In percentages, NOT basis points ;) Watch out!pubshare:u8,}
solita should support specitying where to import a type from that's not part of the rust program , but found in a dependenycy instead.
Thus in the above example, given that token-metadata exports Creators and we have a dep on that SDK if we specify:
OK, thanks for letting me know .. will prioritize this.
Do you have a small example that I could use to test this feature while I'm implementing this (since you said you're running into this)?
At this point I've worked around it, but I was running into it while trying to use this struct in this program. Instead I had to insert a copy here, we called it an adapter for semantics, but the adapter could have been the struct in bubblegum.
In order to avoid the below https://github.com/metaplex-foundation/metaplex-program-library/blob/master/candy-machine/program/src/state.rs#L68-L75
solita should support specitying where to import a type from that's not part of the rust program , but found in a dependenycy instead.
Thus in the above example, given that
token-metadata
exportsCreators
and we have a dep on that SDK if we specify:should add the below to all modules which refer to
Creator
The text was updated successfully, but these errors were encountered: