Closed BulatSaif closed 2 years ago
At the moment no extrinsic hash is being generated for unsigned extrinsics in scalecodec, as I can remember because collisions are possible (the payload of unsigned extrinsics don't have to be unique).
But that breaks the receipt mechanism and it would be a better practice in the unique case a duplicate extrinsic is found, to raise an exception. I'll release a fix in scalecodec soon
Latest release includes scalecodec fix: https://github.com/polkascan/py-substrate-interface/releases/tag/v1.2.1
Thank you, substrate-interface-1.2.1 fixed the issue.
The following valid unsigned extrinsic will fail with Error:
AttributeError: 'NoneType' object has no attribute 'hex'
. The extrinsic is submitted and available on-chain. Only the receipt is not returned.How to reproduce:
Current output
Desired output
Versions