mirror of
https://github.com/vacp2p/minime.git
synced 2026-01-08 22:57:57 -05:00
refactor: use ECDSA utils function for typed hash digest
This commit is contained in:
@@ -1410,6 +1410,6 @@ contract SigUtils {
|
||||
|
||||
// computes the hash of the fully encoded EIP-712 message for the domain, which can be used to recover the signer
|
||||
function getTypedDataHash(Permit memory _permit) public view returns (bytes32) {
|
||||
return keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, getStructHash(_permit)));
|
||||
return ECDSA.toTypedDataHash(DOMAIN_SEPARATOR, getStructHash(_permit));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user