Skip to content

Commit

Permalink
Missed a few
Browse files Browse the repository at this point in the history
  • Loading branch information
slundqui committed Oct 8, 2024
1 parent c95bab2 commit 92ef2b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/agent0/core/hyperdrive/interactive/local_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def advance_time(
checkpoint_event = pool._create_checkpoint( # pylint: disable=protected-access
check_if_exists=True,
gas_limit=self.config.gas_limit,
retries=self.config.advance_time_create_checkpoint_retry_count,
)
if checkpoint_event is not None:
out_dict[pool].append(checkpoint_event)
Expand All @@ -372,7 +371,6 @@ def advance_time(
for pool in self._deployed_hyperdrive_pools:
checkpoint_event = pool._create_checkpoint(
gas_limit=self.config.gas_limit,
retries=self.config.advance_time_create_checkpoint_retry_count,
) # pylint: disable=protected-access
# These checkpoints should never fail
assert checkpoint_event is not None
Expand Down
2 changes: 0 additions & 2 deletions src/agent0/core/hyperdrive/interactive/local_hyperdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ def _create_checkpoint(
checkpoint_time: int | None = None,
check_if_exists: bool = True,
gas_limit: int | None = None,
retries: int | None = None,
) -> CreateCheckpointEventFP | None:
"""Internal function without safeguard checks for creating a checkpoint.
Creating checkpoints is called by the chain's `advance_time`.
Expand All @@ -551,7 +550,6 @@ def _create_checkpoint(
self.chain.get_deployer_account(),
checkpoint_time=checkpoint_time,
gas_limit=gas_limit,
write_retry_count=retries,
)
except AssertionError as exc:
# Adding additional context to the "Transaction receipt has no logs" error
Expand Down
2 changes: 1 addition & 1 deletion src/agent0/ethpy/base/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ async def _async_build_send_and_wait():
)

try:
return _async_build_send_and_wait()
return await _async_build_send_and_wait()

# Wraps the exception with a contract call exception, adding additional information
# Other than UnknownBlockError, which gets the block number from the transaction receipt,
Expand Down

0 comments on commit 92ef2b9

Please sign in to comment.