diff --git a/test/MiniMeToken.t.sol b/test/MiniMeToken.t.sol index 88392d4..770031b 100644 --- a/test/MiniMeToken.t.sol +++ b/test/MiniMeToken.t.sol @@ -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)); } }