polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 116 forks source link

fix #92

Closed dmitry-vsl closed 3 years ago

dmitry-vsl commented 3 years ago

Function substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True) fails with the following traceback

Traceback (most recent call last):
  File "setkeys.py", line 70, in <module>
    receipt = substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True)
  File "/home/vagrant/.local/lib/python3.8/site-packages/substrateinterface/base.py", line 1766, in submit_extrinsic
    response = self.rpc_request(
  File "/home/vagrant/.local/lib/python3.8/site-packages/substrateinterface/base.py", line 540, in rpc_request
    callback_result = result_handler(message, update_nr)
TypeError: result_handler() missing 1 required positional argument: 'subscription_id'
arjanz commented 3 years ago

Thanks for pointing this out, this was a crucial miss

arjanz commented 3 years ago

Fixed in release https://github.com/polkascan/py-substrate-interface/releases/tag/v0.12.3