Remove unused named return variables (#4573)
Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
@ -45,7 +45,7 @@ library MessageHashUtils {
|
|||||||
*
|
*
|
||||||
* See {ECDSA-recover}.
|
* See {ECDSA-recover}.
|
||||||
*/
|
*/
|
||||||
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32 digest) {
|
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
|
||||||
return
|
return
|
||||||
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
|
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
|
||||||
}
|
}
|
||||||
@ -59,10 +59,7 @@ library MessageHashUtils {
|
|||||||
*
|
*
|
||||||
* See {ECDSA-recover}.
|
* See {ECDSA-recover}.
|
||||||
*/
|
*/
|
||||||
function toDataWithIntendedValidatorHash(
|
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
|
||||||
address validator,
|
|
||||||
bytes memory data
|
|
||||||
) internal pure returns (bytes32 digest) {
|
|
||||||
return keccak256(abi.encodePacked(hex"19_00", validator, data));
|
return keccak256(abi.encodePacked(hex"19_00", validator, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user