Replace abi.encodeWithSelector & abi.encodeWithSignature with abi.encodeCall (#4293)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Balaji Shetty Pachai
2023-06-07 02:02:55 +05:30
committed by GitHub
parent 85696d80ad
commit 4fd2f8be33
8 changed files with 14 additions and 13 deletions

View File

@ -41,7 +41,7 @@ library SignatureChecker {
bytes memory signature
) internal view returns (bool) {
(bool success, bytes memory result) = signer.staticcall(
abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
abi.encodeCall(IERC1271.isValidSignature, (hash, signature))
);
return (success &&
result.length >= 32 &&