File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -378,14 +378,9 @@ async def process_events(self):
378378 event ["event" ]["module_id" ] == "Balances"
379379 and event ["event" ]["event_id" ] == "Deposit"
380380 ):
381- if isinstance (event , dict ):
382- self .__total_fee_amount += event ["event" ]["attributes" ][
383- "amount"
384- ]
385- else :
386- self .__total_fee_amount += event .value ["attributes" ][
387- "amount"
388- ]
381+ self .__total_fee_amount += event ["event" ]["attributes" ][
382+ "amount"
383+ ]
389384 if possible_success is True and self .__error_message is None :
390385 # we delay the positive setting of the __is_success flag until we have finished iteration of the
391386 # events and have ensured nothing has set an error message
Original file line number Diff line number Diff line change @@ -331,7 +331,9 @@ def process_events(self):
331331 event ["event" ]["module_id" ] == "Balances"
332332 and event ["event" ]["event_id" ] == "Deposit"
333333 ):
334- self .__total_fee_amount += event .value ["attributes" ]["amount" ]
334+ self .__total_fee_amount += event ["event" ]["attributes" ][
335+ "amount"
336+ ]
335337 if possible_success is True and self .__error_message is None :
336338 # we delay the positive setting of the __is_success flag until we have finished iteration of the
337339 # events and have ensured nothing has set an error message
You can’t perform that action at this time.
0 commit comments