You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to decode extrinsic for a block using get_block method from py-substrate interface. For an extrinsic with no signer, extrinsic hash is none. How do we get extrinsic hash when there is no signer.
Extrinsic hash is assigned to None here when there is no signer
Here is my code example:
fromsubstrateinterfaceimportSubstrateInterfacedefpolkadot_decodeExtrinsic(self):
substrate=SubstrateInterface(url="https://rpc.polkadot.io")
block=substrate.get_block(
block_hash='0xa25f3b3840989455423acd6626ceb9dc91b9d2044ee8430f234f8c0c46ed728c')
fori, extrinsicinenumerate(block['extrinsics']):
assert (extrinsic.value["extrinsic_hash"]) isNone# This should not be none
Expected Behaviour:
The Hash should not be None and there should be some value as seen in polkascan explorer for the first and as well as second extrinsic.
Reference:
The same issue was reported. Issue link fyr here
The text was updated successfully, but these errors were encountered:
I am trying to decode extrinsic for a block using
get_block
method from py-substrate interface. For an extrinsic with no signer, extrinsic hash is none. How do we get extrinsic hash when there is no signer.Extrinsic hash is assigned to None here when there is no signer
Here is my code example:
Expected Behaviour:
The Hash should not be
None
and there should be some value as seen in polkascan explorer for the first and as well as second extrinsic.Reference:
The same issue was reported. Issue link fyr here
The text was updated successfully, but these errors were encountered: