-
-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: raw_call type when max_outsize=0 is set (#3572)
prior to this commit, when `raw_call` is used with `max_outsize` explicitly set to 0 (`max_outsize=0`) the compiler incorrectly infers that raw_call has no return type ```vyper @external @payable def foo(_target: address): # compiles a: bool = raw_call(_target, method_id("foo()"), revert_on_failure=False) # should have same behavior, but prior to this commit does not compile: b: bool = raw_call(_target, method_id("foo()"), max_outsize=0, revert_on_failure=False) ``` chainsec june 2023 review 5.16 --------- Co-authored-by: tserg <[email protected]>
- Loading branch information
1 parent
a19cdea
commit 572b38c
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters