Skip to content

Commit b619ec8

Browse files
committed
fix lint
1 parent f237fa7 commit b619ec8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

convex_api/convex_api.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
import json
99
import logging
10-
from urllib.parse import urljoin
11-
import requests
1210
import secrets
1311
import time
1412

13+
from urllib.parse import urljoin
1514

15+
import requests
1616
from eth_utils import remove_0x_prefix
1717

1818
from convex_api.exceptions import (
@@ -55,14 +55,10 @@ def send(self, transaction, account, language=None, sequence_retry_count=20):
5555
if not isinstance(transaction, str):
5656
raise TypeError('The transaction must be a type str')
5757

58-
# number of retries for a SEQUENCE error
59-
counter = 0
60-
last_sequence_number = None
6158
result = None
62-
last_id = None
6359
while sequence_retry_count >= 0:
6460
try:
65-
hash_data = self._transaction_prepare(account.address, transaction, last_sequence_number, language)
61+
hash_data = self._transaction_prepare(account.address, transaction, language=language)
6662
signed_data = account.sign(hash_data['hash'])
6763
result = self._transaction_submit(account.address, hash_data['hash'], signed_data)
6864
except ConvexAPIError as error:
@@ -247,7 +243,7 @@ def get_account_info(self, address_account):
247243
logger.debug(f'get_account_info repsonse {result}')
248244
return result
249245

250-
def _transaction_prepare(self, address, transaction, sequence_number=None, language=None):
246+
def _transaction_prepare(self, address, transaction, language=None, sequence_number=None):
251247
"""
252248
253249
"""

0 commit comments

Comments
 (0)