invalidate signature data for old nonce
This commit is contained in:
parent
eaddc9e6f8
commit
9b639bee65
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user