kevinheavey / anchor-bankrun

An Anchor wrapper for solana-bankrun
MIT License
20 stars 5 forks source link

Handle missing logs in sendWithErr #10

Closed kevinheavey closed 11 months ago

kevinheavey commented 11 months ago

fixes #9

Typescript should have caught this since the type declaration looks like: get meta(): BanksTransactionMeta | null;

So it should have pointed out that const logs = res.meta.logMessages; could fail.

But for some reason it didn't 😕