kevinheavey / anchor-bankrun

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

TypeError: Cannot read properties of null (reading 'logMessages') #9

Closed metaproph3t closed 11 months ago

metaproph3t commented 11 months ago

Periodically, I get the following printed to my logs:

TypeError: Cannot read properties of null (reading 'logMessages')
    at sendWithErr (/home/user/meta-dao/node_modules/anchor-bankrun/src/index.ts:73:25)
    at BankrunProvider.sendAndConfirm (/home/user/meta-dao/node_modules/anchor-bankrun/src/index.ts:142:3)
    at MethodsBuilder.rpc [as _rpcFn] (/home/user/meta-dao/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:29:16)

I've checked, and the method call doesn't return an error nor does the underlying transaction revert (I checked that the expected state transition occurred). And this message doesn't get printed 100% of the time, maybe 90% of the time. Can provide my source if needed, but I don't think it'll help as I have other identical calls not printing this message.