-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.7.0 no longer propagate contract errors for .calls #222
Comments
@josojo I don't think Querying the contract should however return errors. |
@tomusdrw |
Hi @josojo! So firstly - this only affects ganache - note that However See the payload:
Note that such response is an INVALID JSON-RPC response. Since the response is invalid we can't guarantee what will be decoded. And in between Actually I've made a PR to So I think the issue is more related to |
Closing since I believe it's not really an issue with |
Thanks a lot for digging down this rabbit hole! This is indeed a strange behavior from ganache. |
Hi,
Since the new version of 0.7.0, a contract call:
does no longer throws an error, if the contract call failed. It used to be like this and it was a highly appreciated feature. Why was it changed? Was this intentional?
I wrote a minimal example - a fork of the simpleStorage - in order to explain how the unwrap no longer fails. Checkout the code here: https://github.com/josojo/rust-web3/tree/errorDescription
The function call here:
https://github.com/josojo/rust-web3/blob/errorDescription/examples/simple_storage.rs#L37
used to return an error. But it does not, it just returns the tx hash.
The text was updated successfully, but these errors were encountered: