Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Feb 1, 2024
1 parent 177ce1b commit 4eb8c24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/apis/web3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_filtered_receipts(

def get_tx_hashes_by_block(
self, start_block: int, end_block: int
) -> Optional[list[str]]:
) -> list[str]:
"""
Function filters hashes by contract address, and block ranges
"""
Expand All @@ -80,7 +80,7 @@ def get_tx_hashes_by_block(
)

if log_receipts is None:
return None
return []
settlement_hashes_list = list(
{log_receipt["transactionHash"].hex() for log_receipt in log_receipts}
)
Expand Down
2 changes: 1 addition & 1 deletion src/monitoring_tests/cost_coverage_zero_signed_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def cost_coverage(self, competition_data: dict[str, Any], gas_cost: float) -> bo
ucp = solution["clearingPrices"]
orders = solution["orders"]
native_prices = competition_data["auction"]["prices"]
total_fee = 0
total_fee = 0.0
for order in orders:
order_data = self.orderbook_api.get_order_data(order["id"])
if order_data is None:
Expand Down

0 comments on commit 4eb8c24

Please sign in to comment.