Skip to content

Commit 3e0bccc

Browse files
committed
make sure no_retry tx parameter always gets deleted before passing tx to Web3.py
1 parent beadd2f commit 3e0bccc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IceCreamSwapWeb3/EthAdvanced.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ def call(
8181
ccip_read_enabled: Optional[bool] = None,
8282
no_retry: bool = False,
8383
):
84-
if not self.w3.should_retry:
85-
no_retry = True
86-
elif "no_retry" in transaction:
84+
if "no_retry" in transaction:
8785
no_retry = transaction["no_retry"]
8886
del transaction["no_retry"]
87+
if not self.w3.should_retry:
88+
no_retry = True
8989

9090
return exponential_retry(func_name="call")(super().call)(
9191
transaction=transaction,

0 commit comments

Comments
 (0)