Skip to content

Version 0.7.0 no longer propagate contract errors for .calls #222

@josojo

Description

@josojo

Hi,

Since the new version of 0.7.0, a contract call:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions