forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow msg.data in raw_call without slice (vyperlang#2902)
a common use case for raw_call is to forward all calldata to an implementation or logic contract of some kind. however, currently vyper only allows msg.data inside of slice() or len(); this does not allow one to forward calldata of any size. this enables that use case without requiring the length of msg.data to be known. it does this by simply copying calldata to the location pointed to by `msize`. this commit also fixes an annotation in abi_decode, and slightly cleans up the logic in the raw_call implementation.
- Loading branch information
1 parent
4243cbd
commit b8dea0c
Showing
3 changed files
with
56 additions
and
24 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
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