Skip to content

Commit f159464

Browse files
committed
nonce
1 parent 644db20 commit f159464

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

turbine_client/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

turbine_client/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __post_init__(self) -> None:
4848
class 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,

0 commit comments

Comments
 (0)