program: Add optional buffer to Write instruction#8
Conversation
lorisleiva
left a comment
There was a problem hiding this comment.
Thanks Febo! I've done the JS side. Let me know if you're happy with it and LGTM. 💪
Nice! Something that just occurred to me. Perhaps the |
I think I prefer having it required to explicitly hint that you are going to override data from the provided offset. Otherwise users providing multiple |
I was thinking making both |
Spoke offline, better to keep the |
Problem
Currently, the
Writeinstruction only accepts the data to write as instruction data. This limits each write to the maximum transaction size.Solution
Add an optional buffer account to allow passing more data for a single write. This is useful when writing to PDA accounts controlled by multisigs, since the process of writing the data to a buffer can be done by a separate keypair.