Unable to get _signTypedData to provide USDC POS on Polygon with right values #2886
Unanswered
rajasmasala
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you found a solution for this? It seems the problem is with USDC specifically. I cannot reproduce the issue with a newly deployed permittable ERC20. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first of all thank you for this wonderful set of packages. I really do enjoy using them and they really make life easer when coding.
However, I do have a major issue that has going on for more than a week now where I just can't get the signTypedData function to work with the Permit function of USDC (POS) on Polygon (Error thrown is 'Permit: invalid signature'). I would really like help to get past this. The permit type is:
// = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")
from the Polygonscan verified contract.
My code is as follows (I have left in a working sushi swap to indicate it is meant to be run on Polygon mainnet fork ):
Any help would be deeply appreciated!
Kind regards,
rajasmasala
P.s. One more detail if it can help: this is the payload from the above typed data signature object that gets console logged from _TypedDataEncoder:
Beta Was this translation helpful? Give feedback.
All reactions