invalidate signature data for old nonce

This commit is contained in:
Moody Salem 2021-04-30 21:23:16 -05:00
parent eaddc9e6f8
commit 9b639bee65
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -169,6 +169,7 @@ export function useERC20Permit(
signatureData.owner === account &&
signatureData.deadline >= transactionDeadline.toNumber() &&
signatureData.tokenAddress === tokenAddress &&
signatureData.nonce === nonceNumber &&
signatureData.spender === spender &&
('allowed' in signatureData || JSBI.equal(JSBI.BigInt(signatureData.amount), currencyAmount.raw))