-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Add require(bool,bytes) global function #9454
Comments
This is a good point and we might add it with enabling user-defined error types. |
Something like this seems easy to understand, as long as the parameters of require line up with the return parameter types and order. require(someAddress.call{ value: msg.value }('')); |
This issue has been marked as stale due to inactivity for the last 90 days. |
I still think this would be a good idea. If no one has anymore thoughts on the idea, I'll just close this. |
This issue has been marked as stale due to inactivity for the last 90 days. |
It seems like most people throw away returndata when performing calls. ie.
It would be nice to be able to do something like.
That way if the contract we're calling has a descriptive error we can just forward that.
The text was updated successfully, but these errors were encountered: