Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BoundContract Call no longer returning correct solidity error #392

Open
trinhdn2 opened this issue Oct 10, 2023 · 0 comments
Open

BoundContract Call no longer returning correct solidity error #392

trinhdn2 opened this issue Oct 10, 2023 · 0 comments

Comments

@trinhdn2
Copy link

About the behavior of the Call method in accounts/abi/bind/base.go. The correct contract error from CallContract is no longer returned, and Unpack is called even though CallContract has failed, which I think is a mistake.

And some third-party apps using abigen are relying on the old behavior, so would be great to have the correct contract error message back.

Expected behaviour

If the contract invocation has failed (due to require or else), return the correct associated error message

Actual behaviour

If the contract invocation has failed (due to require or else) "abi: attempting to unmarshall an empty string while arguments are expected" is returned

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant