File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ async def process_events(self):
276276 # Process other events
277277 possible_success = False
278278 for event in await self .triggered_events :
279+ # TODO make this more readable
279280 # Check events
280281 if (
281282 event ["event" ]["module_id" ] == "System"
@@ -378,7 +379,9 @@ async def process_events(self):
378379 event ["event" ]["module_id" ] == "Balances"
379380 and event ["event" ]["event_id" ] == "Deposit"
380381 ):
381- self .__total_fee_amount += event .value ["attributes" ]["amount" ]
382+ self .__total_fee_amount += event ["event" ]["attributes" ][
383+ "amount"
384+ ]
382385 if possible_success is True and self .__error_message is None :
383386 # we delay the positive setting of the __is_success flag until we have finished iteration of the
384387 # events and have ensured nothing has set an error message
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ def process_events(self):
237237 # Process other events
238238 possible_success = False
239239 for event in self .triggered_events :
240+ # TODO make this more readable
240241 # Check events
241242 if (
242243 event ["event" ]["module_id" ] == "System"
@@ -331,7 +332,9 @@ def process_events(self):
331332 event ["event" ]["module_id" ] == "Balances"
332333 and event ["event" ]["event_id" ] == "Deposit"
333334 ):
334- self .__total_fee_amount += event .value ["attributes" ]["amount" ]
335+ self .__total_fee_amount += event ["event" ]["attributes" ][
336+ "amount"
337+ ]
335338 if possible_success is True and self .__error_message is None :
336339 # we delay the positive setting of the __is_success flag until we have finished iteration of the
337340 # events and have ensured nothing has set an error message
You can’t perform that action at this time.
0 commit comments