metaplex-foundation / solita

Genrates an SDK API from solana contract IDL.
Apache License 2.0
142 stars 33 forks source link

[feat]:support BTreeMap #69

Closed imoyakin closed 2 years ago

imoyakin commented 2 years ago
AssertionError [ERR_ASSERTION]: Unknown type BTreeMap<u32,u32> is neither found in types nor an Account

support BTreeMap generate for program, like nft-packs

thlorenz commented 2 years ago

This is an anchor issue actually since it adds types that it doesn't understand as defined types. Please see more in #76 which should also fix your issue. Therefore please upgrade to latest solita and try again please and LMK if we can close or if something else is needed.

imoyakin commented 2 years ago

thanks for you work! Now program Internal definitions do not affect code generation.