Skip to content

Commit 4eb8c24

Browse files
committed
minor fixes
1 parent 177ce1b commit 4eb8c24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/apis/web3api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_filtered_receipts(
6868

6969
def get_tx_hashes_by_block(
7070
self, start_block: int, end_block: int
71-
) -> Optional[list[str]]:
71+
) -> list[str]:
7272
"""
7373
Function filters hashes by contract address, and block ranges
7474
"""
@@ -80,7 +80,7 @@ def get_tx_hashes_by_block(
8080
)
8181

8282
if log_receipts is None:
83-
return None
83+
return []
8484
settlement_hashes_list = list(
8585
{log_receipt["transactionHash"].hex() for log_receipt in log_receipts}
8686
)

src/monitoring_tests/cost_coverage_zero_signed_fee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def cost_coverage(self, competition_data: dict[str, Any], gas_cost: float) -> bo
3838
ucp = solution["clearingPrices"]
3939
orders = solution["orders"]
4040
native_prices = competition_data["auction"]["prices"]
41-
total_fee = 0
41+
total_fee = 0.0
4242
for order in orders:
4343
order_data = self.orderbook_api.get_order_data(order["id"])
4444
if order_data is None:

0 commit comments

Comments
 (0)