We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 933084c commit fe09138Copy full SHA for fe09138
async_substrate_interface/async_substrate.py
@@ -378,7 +378,14 @@ async def process_events(self):
378
event["event"]["module_id"] == "Balances"
379
and event["event"]["event_id"] == "Deposit"
380
):
381
- self.__total_fee_amount += event.value["attributes"]["amount"]
+ 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
388
389
if possible_success is True and self.__error_message is None:
390
# we delay the positive setting of the __is_success flag until we have finished iteration of the
391
# events and have ensured nothing has set an error message
0 commit comments