kklas / anchor-client-gen

A tool for generating solana web3 clients from anchor IDLs.
MIT License
135 stars 21 forks source link

instructions with optional accounts #64

Open cryptorrivem opened 1 year ago

cryptorrivem commented 1 year ago

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