metaplex-foundation/solita

[feat]: respect accounts marked as optional

thlorenz opened this issue · 0 comments

shank will include information regarding the optionality of an instruction account.

When solita encounters an optional account in the IDL it should adapt it as follows:

  • the PublicKey for the account should be optional
  • the account metadata should only be included with the accounts sent to the instruction if that PublicKey is define