Festive Flaxen Raccoon
Medium
As we are calling verifySignature function to verify the signature and we are calling the ECDSA.toEthSignedMessageHash function but there is no function like it.
As we can go through the below link we can see that the other is no function like toEthSignedMessageHash in ECDSA. https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol
function _verifySignature(bytes memory updateData, bytes memory signature) private view returns (bool) { return signer == ECDSA.recover(ECDSA.toEthSignedMessageHash(updateData), signature); } }
Manual Review
use MessageHashUtils-toEthSignedMessageHash