Error while gas estimation - Signer and signature do not match

This is a common error when using Custom approach.
It has to do with EIP712 type hash expected in your smart contract. It should look something like this : EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)

domain type you’re using in the code for the signature should match above type. Domain data has to be in the same order (verify name, chainId etc)

1 Like