How to specify remainingAccounts?
Closed this issue · 2 comments
archseer commented
We use an instruction that uses ctx.remaining_accounts
internally. How do we specify those remaining accounts? They're passed as a separate field in anchor.js
.
gagliardetto commented
Instructions have an Append
method.
Example: instr.Append(solana.Meta(pubkey).WRITE().SIGNER())
archseer commented
Thanks! That helped.