metaplex-foundation / amman

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.
https://metaplex-foundation.github.io/amman/docs/
Apache License 2.0
71 stars 17 forks source link

chore: upgrade web3 and using it to log #59

Closed thlorenz closed 1 year ago

thlorenz commented 1 year ago

Summary

This PR fixes multiple issues around transaction errors.

One is that logs wouldn't always show the error message which was fixed by

The other is that in some cases expected errors weren't set on the transaction property that we queried for this. Specifically runtime error messages were only present in the logs. Thus we parse them from there if an error regex is passed to assertError on the transaction promise.

Fixes #57 Fixes #58