dmihal / eth-permit

Lightweight library for signing ERC-2612 permit signatures.
https://www.npmjs.com/package/eth-permit
139 stars 30 forks source link

Calling the external functions with nonce = 0 does not have desired effect #13

Closed jgostylo closed 2 years ago

jgostylo commented 2 years ago

The edge case where setting nonce=0 currently does not override the function to query the contract for the nonce.

This is actually an extremely important edge case as it is the first nonce that you must use for DAI. There is no way that I can see to work around this limitation to interact with a pre-fork deployment of the DAI contract on a test chain fork like what you get with hardhat.

dmihal commented 2 years ago

Closed in #14