Skip to content

Commit bd73de1

Browse files
harisangfhenneke
andauthored
Update src/monitoring_tests/fee_monitoring/fee_monitoring.py
Co-authored-by: Felix Henneke <felix.henneke@protonmail.com>
1 parent 30048a7 commit bd73de1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/monitoring_tests/fee_monitoring/fee_monitoring.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ def fee_test(self, tx_hash) -> bool: # pylint: disable=too-many-locals
141141
if len(partially_fillable_indices) > 0:
142142
# get additional data for the batch
143143
receipt = TemplateTest.get_encoded_receipt(tx_hash)
144-
competition_data = TemplateTest.get_solver_competition_data([tx_hash])[0]
144+
competition_data_list = TemplateTest.get_solver_competition_data([tx_hash])
145+
if len(competition_data_list) == 0:
146+
return False
147+
competition_data = competition_data_list[0]
145148

146149
for i in partially_fillable_indices:
147150
# get additional data for the trade

0 commit comments

Comments
 (0)