metaplex-foundation / shank

Extracts IDL from Solana Rust contracts
https://docs.rs/crate/shank_macro/latest
116 stars 23 forks source link

[feat]: optional accounts support #16

Closed thlorenz closed 2 years ago

thlorenz commented 2 years ago

The #[account] attribute should support an optional flag which marks the account as optional. The resulting IDL for the instruction will include that flag for the account which code generators can then use to adapt the code to make the provided PublicKey for the account optional and only include the account if it is provided.

thlorenz commented 2 years ago

FIXED in #20