kevinheavey / anchor-bankrun

An Anchor wrapper for solana-bankrun
MIT License
36 stars 8 forks source link

Add `publicKey` field to `BankrunProvider` #2

Closed metaproph3t closed 1 year ago

metaproph3t commented 1 year ago

In my tests, I use anchor's createInstruction (example usage). This function requires the provider to have a publicKey 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.

kevinheavey commented 1 year ago

Superseded by #3