I tested locally that createInstruction now works. I didn't check in this test code bcuz it wouldn't really make sense to do it like this in this test (it only really makes sense when you have an #[account(zero)]), and I didn't want to confuse any future readers.
In my tests, I use anchor's
createInstruction
(example usage). This function requires the provider to have apublicKey
field, so I've added one.I tested locally that
createInstruction
now works. I didn't check in this test code bcuz it wouldn't really make sense to do it like this in this test (it only really makes sense when you have an#[account(zero)]
), and I didn't want to confuse any future readers.