Эх сурвалжийг харах

Remove unused named return variables (#4573)

Co-authored-by: Francisco <fg@frang.io>
Hadrien Croubois 2 жил өмнө
parent
commit
e2a9353dea

+ 2 - 5
contracts/utils/cryptography/MessageHashUtils.sol

@@ -45,7 +45,7 @@ library MessageHashUtils {
      *
      * See {ECDSA-recover}.
      */
-    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32 digest) {
+    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
         return
             keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
     }
@@ -59,10 +59,7 @@ library MessageHashUtils {
      *
      * See {ECDSA-recover}.
      */
-    function toDataWithIntendedValidatorHash(
-        address validator,
-        bytes memory data
-    ) internal pure returns (bytes32 digest) {
+    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
         return keccak256(abi.encodePacked(hex"19_00", validator, data));
     }