When I use metamask to try and generate a permit. I'm getting "Failed to verify signatures for the given permit" when trying to use the permit.
I think it might have to do with pretty printing the json before converting to hex:
|
const msgToSign = `0x${toHex(prettySerializeStdSignDoc(signDoc))}`; |
Which would make the computed hashes different when the signature is generated, I would think.