This PR adds the default_optional_accounts instruction attribute that sets the strategy for
code generators regarding how optional accounts should be included in the accounts array.
If it is present all accounts not provided should be set to the program_id instead of just
being omitted (which is the default strategy).
Summary
This PR adds the
default_optional_accounts
instruction attribute that sets the strategy for code generators regarding how optional accounts should be included in the accounts array.If it is present all accounts not provided should be set to the
program_id
instead of just being omitted (which is the default strategy).Example
Related Issue in solita: https://github.com/metaplex-foundation/solita/issues/93 Related PR in solita: https://github.com/metaplex-foundation/solita/pull/94