The _setDomainSeperator()
function in the EIP712Base.sol
uses an incorrect type hash which does not match the format of data it is supposed to represent. In EIP-712, the domain separator should match the format: EIP712Domain(string name, string version, uint256 chainId, address verifyingContract)
.
The EIP-712 standard specifies a domain separator format using the type hash for the following data structure:
However, in the current implementation:
Signature verification failure: the type hash used in the domain separator does not match the required format, any off-chain signatures generated expecting the domain to be compliant with EIP712Domain
will not match the calculated on-chain domain separator. As a result, all such signature verifications will fail.
use EIP712 Domain (string name, string version, uint256 chainId, address verifyingContract)
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.