from substrateinterface import SubstrateInterface
from substrateinterface import ExtrinsicReceipt
s = SubstrateInterface('wss://westend-rpc.polkadot.io')
r = ExtrinsicReceipt.create_from_extrinsic_identifier(s, '7981648-4')
fee = r.total_fee_amount
gives the following error:
Traceback (most recent call last):
File "example.py", line 7, in <module>
fee = r.total_fee_amount
File ".../venv/lib/python3.8/site-packages/substrateinterface/base.py", line 3077, in total_fee_amount
self.process_events()
File ".../venv/lib/python3.8/site-packages/substrateinterface/base.py", line 2966, in process_events
self.__total_fee_amount += event.value['attributes']
TypeError: unsupported operand type(s) for +=: 'int' and 'tuple'
The code
gives the following error: