-
-
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.
fix: calldatasize < 4 reverting instead of going to fallback (#3408)
in the case that a selector matches calldata with less than 4 bytes, it currently will revert instead of going to the fallback. this can happen if the selector has trailing zeroes. this commit fixes the behavior for selectors with trailing zeroes, and improves code size and gas for those without trailing zeroes.
- Loading branch information
1 parent
dcc230c
commit 9ecb97b
Showing
2 changed files
with
130 additions
and
27 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