anchor-client-gen icon indicating copy to clipboard operation
anchor-client-gen copied to clipboard

instructions with optional accounts

Open cryptorrivem opened this issue 2 years ago • 0 comments

Add the ability to model instructions with accounts that are optional (Option<Account<'info, T>>), so we can specify them as null and the instruction method will fill in with the PROGRAM_ID address as Anchor expects for such optional accounts

cryptorrivem avatar Jul 28 '23 13:07 cryptorrivem