Skip to content

Commit

Permalink
Comments and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
slundqui committed Oct 8, 2024
1 parent ce29945 commit 8e2e06d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/agent0/core/hyperdrive/interactive/local_hyperdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ def _create_checkpoint(
return None

try:
# Adding in explicit retires here to avoid setting the global retry
checkpoint_event = self.interface.create_checkpoint(
self.chain.get_deployer_account(),
checkpoint_time=checkpoint_time,
Expand Down
6 changes: 0 additions & 6 deletions src/agent0/ethpy/base/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ async def async_smart_contract_transact(

unsent_txn: TxParams = {}

# We need to retry both build transaction with send and wait
# so we compose both of these functions here in a private subfunction
async def _async_build_send_and_wait():
# Build transaction
# Building transaction can fail when transaction itself isn't correct
Expand Down Expand Up @@ -591,7 +589,6 @@ async def _async_build_send_and_wait():
function_name_or_signature,
*fn_args,
block_identifier=BlockNumber(block_number),
read_retry_count=1, # No retries for this preview
**fn_kwargs,
)
# If the preview was successful, then we raise this message here
Expand Down Expand Up @@ -760,8 +757,6 @@ def smart_contract_transact(

unsent_txn: TxParams = {}

# We need to retry both build transaction with send and wait
# so we compose both of these functions here in a private subfunction
def _build_send_and_wait():
# Build transaction
# Building transaction can fail when transaction itself isn't correct
Expand Down Expand Up @@ -825,7 +820,6 @@ def _build_send_and_wait():
function_name_or_signature,
*fn_args,
block_identifier=BlockNumber(block_number),
read_retry_count=1, # No retries for this preview
**fn_kwargs,
)
# If the preview was successful, then we raise this message here
Expand Down
2 changes: 0 additions & 2 deletions src/agent0/ethpy/hyperdrive/interface/read_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ def __init__(
web3: Web3, optional
web3 provider object, optional
If not given, a web3 object is constructed using the `rpc_uri` as the http provider.
read_retry_count: int | None, optional
The number of times to retry the read call if it fails. Defaults to 5.
txn_receipt_timeout: float | None, optional
The timeout for waiting for a transaction receipt in seconds. Defaults to 120.
txn_signature: bytes | None, optional
Expand Down

0 comments on commit 8e2e06d

Please sign in to comment.