metaplex-foundation / solita

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

Add support for isOptional instruction account attribute #106

Closed lorisleiva closed 1 year ago

lorisleiva commented 1 year ago

Problem

Anchor labels optional instruction accounts using the isOptional attribute whereas Solita expects the optional attribute as Shank uses the latter.

Solution

Support both optional and isOptional attributes to label optional instruction accounts.