Skip to content

Commit 66108f8

Browse files
committed
fix multiple nonce issue on market orders
1 parent 4d98a86 commit 66108f8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lighter/signer_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ async def wrapper(self, *args, **kwargs):
8686
if api_key_index == -1 and nonce == -1:
8787
api_key_index, nonce = self.nonce_manager.next_nonce()
8888
err = self.switch_api_key(api_key_index)
89+
if "nonce" in kwargs:
90+
del kwargs["nonce"]
91+
if "api_key_index" in kwargs:
92+
del kwargs["api_key_index"]
8993
if err != None:
9094
raise Exception(f"error switching api key: {err}")
9195

0 commit comments

Comments
 (0)