kevinheavey / anchor-bankrun

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

unknown action "undefined" #18

Closed wuuer closed 1 month ago

wuuer commented 3 months 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 3 months ago

Getting this too. Any ideas?

kevinheavey commented 3 months ago

Can I get a minimal reproducible example please?

elo-siema commented 3 months ago

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

elo-siema commented 3 months 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

kevinheavey commented 1 month ago

fixed by #19