Update Prettier Solidity (#3898)
This commit is contained in:
@ -21,11 +21,7 @@ library SignatureChecker {
|
||||
* NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
|
||||
* change through time. It could return true at block N and false at block N+1 (or the opposite).
|
||||
*/
|
||||
function isValidSignatureNow(
|
||||
address signer,
|
||||
bytes32 hash,
|
||||
bytes memory signature
|
||||
) internal view returns (bool) {
|
||||
function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
|
||||
(address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
|
||||
if (error == ECDSA.RecoverError.NoError && recovered == signer) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user