polkascan / py-substrate-interface

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

String Decimals Being Returned in Substrate Error Handling #211

Closed kristian1108 closed 2 years ago

kristian1108 commented 2 years ago

In the Westend runtime, error codes are bring returned as string decimals on occasion which is breaking the provided error parsing logic.

See question and answer in the Substrate stack exchange: https://substrate.stackexchange.com/questions/1972/0x02000000-being-returned-in-extrinsic-receipt-and-failing-error-module-indexing

arjanz commented 2 years ago

This is indeed caused by recently released PR https://github.com/paritytech/substrate/pull/10242, the change in error message format needs to implemented in the lib as well, I'll follow up on this

arjanz commented 2 years ago

Fix released in https://github.com/polkascan/py-substrate-interface/releases/tag/v1.2.4

kristian1108 commented 2 years ago

Thanks @arjanz !!