We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
revert_on_failure=
as title
catching external call reversion currently requires using raw_call(), but it would be nice not to have to drop down to that.
raw_call()
add revert_on_failure to all external calls. if it is set to False, the external call returns a tuple of (success, return_value). for instance:
revert_on_failure
False
(success, return_value)
interface Bar: def return_something() -> address: nonpayable def foo(bar: Bar) -> address: success: bool = False ret: address = empty(address) success, ret = bar.return_something(revert_on_failure=False) if success: return ret return empty(address)
no backwards compatibility issues
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered:
meeting notes: approved
Sorry, something went wrong.
No branches or pull requests
Simple Summary
as title
Motivation
catching external call reversion currently requires using
raw_call()
, but it would be nice not to have to drop down to that.Specification
add
revert_on_failure
to all external calls. if it is set toFalse
, the external call returns a tuple of(success, return_value)
. for instance:Backwards Compatibility
no backwards compatibility issues
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: