Skip to content

Commit 199e26c

Browse files
committed
Added comment
1 parent 8d81613 commit 199e26c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ async def process_events(self):
380380
):
381381
self.__total_fee_amount += event.value["attributes"]["amount"]
382382
if possible_success is True and self.__error_message is None:
383+
# we delay the positive setting of the __is_success flag until we have finished iteration of the
384+
# events and have ensured nothing has set an error message
383385
self.__is_success = True
384386

385387
@property

async_substrate_interface/sync_substrate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ def process_events(self):
333333
):
334334
self.__total_fee_amount += event.value["attributes"]["amount"]
335335
if possible_success is True and self.__error_message is None:
336+
# we delay the positive setting of the __is_success flag until we have finished iteration of the
337+
# events and have ensured nothing has set an error message
336338
self.__is_success = True
337339

338340
@property

0 commit comments

Comments
 (0)