EatTheBlocks Forum

Invalid Signature error when using Uniswap Router V2 Permit function

Hello guys, I’m trying to remove liquidity via the RemoveLiquidityETHWithPermit function but I get this error message everytime. I am verifying the recovered address from my signature using an ethers.js function (verifyTypedData) and my address is being returned fine, but for some reason when I use the contract I still get that error, I am using the EIP-712 typed data schema… has anybody else run into this error before? do you know how I’m supposed to set the message so that the contract can recover the address from the signature?