File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1174,6 +1174,7 @@ def sign_usdc_permit(
11741174 s = "0x" + hex (signed .s )[2 :].zfill (64 )
11751175
11761176 return PermitSignature (
1177+ nonce = nonce ,
11771178 value = value ,
11781179 deadline = deadline ,
11791180 v = v ,
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def __post_init__(self) -> None:
4848class PermitSignature :
4949 """EIP-2612 permit signature for gasless USDC approval."""
5050
51+ nonce : int # The nonce used when signing (must match on-chain)
5152 value : int # Amount approved
5253 deadline : int # Expiration timestamp
5354 v : int
@@ -57,6 +58,7 @@ class PermitSignature:
5758 def to_dict (self ) -> Dict [str , Any ]:
5859 """Convert to dictionary for API submission."""
5960 return {
61+ "nonce" : self .nonce ,
6062 "value" : self .value ,
6163 "deadline" : self .deadline ,
6264 "v" : self .v ,
You can’t perform that action at this time.
0 commit comments