kevinheavey / anchor-bankrun

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

unknown action "undefined" #18

Open wuuer opened 1 month ago

wuuer commented 1 month ago

Error: unknown action "undefined" occurs when calling a method of a contract throwing errors

It might be a bug related to "sendWithErr" function in index.js

kevinrodriguez-io commented 1 month ago

Getting this too. Any ideas?

kevinheavey commented 1 month ago

Can I get a minimal reproducible example please?

elo-siema commented 1 month ago

Also getting this. Makes it impossible to test anchor errors like this: https://solana.stackexchange.com/a/1619

elo-siema commented 1 month ago

Issue is stemming from a breaking change in @solana/web3.js 1.92.0, where SendTransactionError was modified. PR to restrict versions: https://github.com/kevinheavey/anchor-bankrun/pull/19 But this should be updated properly. Breaking PR: https://github.com/solana-labs/solana-web3.js/pull/2736/files @kevinheavey