File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments