Simplify LibEIP712ExchangeDomain to be used only for generating domain hash

This commit is contained in:
Amir Bandeali
2019-07-29 21:47:52 -05:00
parent 28e781db15
commit 74a5c8c23c

View File

@@ -49,16 +49,4 @@ contract LibEIP712ExchangeDomain {
verifyingContractAddress
);
}
/// @dev Calculates EIP712 encoding for a hash struct in the EIP712 domain
/// of the Exchange contract.
/// @param hashStruct The EIP712 hash struct.
/// @return EIP712 hash applied to the Exchange EIP712 Domain.
function _hashEIP712ExchangeMessage(bytes32 hashStruct)
internal
view
returns (bytes32 result)
{
return LibEIP712.hashEIP712Message(EIP712_EXCHANGE_DOMAIN_HASH, hashStruct);
}
}