-
-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
default_return_value
kwarg for calls (#2839)
this commit adds a new kwarg, `default_return_value`, available to all external calls. its purpose is to make it easier to interface with contracts which are not compliant with their interfaces (e.g., bad ERC20 implementations) without having to drop down to `raw_call`. since the logic for handling kwargs in `external_call.py` was getting a little gnarly, this commit also refactors and that module a bit. for consistency, it also switches to exclusively using the typechecker type of the function.
- Loading branch information
1 parent
efe1dbe
commit 3195701
Showing
5 changed files
with
187 additions
and
123 deletions.
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
Oops, something went wrong.