Skip to content

Commit

Permalink
make default timeout longer (#1404)
Browse files Browse the repository at this point in the history
set it to 2 minutes to accommodate slower confirmations on real chains (testnet and mainnet).
dev work on local chains may want to manually set lower timeouts.
  • Loading branch information
wakamex authored Apr 10, 2024
1 parent 2c2fa8c commit 2f1a4fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent0/ethpy/base/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def wait_for_transaction_receipt(
The transaction receipt
"""
if timeout is None:
timeout = 30.0
timeout = 120.0
try:
with Timeout(timeout) as _timeout:
poll_latency = start_latency
Expand Down Expand Up @@ -351,7 +351,7 @@ async def async_wait_for_transaction_receipt(
The transaction receipt
"""
if timeout is None:
timeout = 30.0
timeout = 120.0
try:
with Timeout(timeout) as _timeout:
poll_latency = start_latency
Expand Down

0 comments on commit 2f1a4fb

Please sign in to comment.