Skip to content

How to: EIP712 and Ethers #2280

Answered by wschwab
wschwab asked this question in Q&A
Nov 8, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Uniswap v3 actually has a full Ethers implementation of their test fro EIP-2612 here: https://github.com/Uniswap/v3-periphery/blob/main/test/shared/permit.ts

You can confirm there that calling splitSignature on _signTypedData is in fact correct. As for why I couldn't get my code to work, jury's out. I suspect my original implementation had an error somewhere in the details. (I was working on something a bit different than EIP-2612 permits for ERC20 - I was trying to work out a permit scheme for ERC721, which is now working though.)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MasterDevv
Comment options

Answer selected by wschwab
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants