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'm encountering an issue when decoding blocks on LAOS parachain using polkadot.js API version 14.2.1. Specifically, when attempting to decode block 54522, the API throws an error. However, using version 12.4.2, the block decodes properly without any issues.
Error Message: createType(SignedBlock):: Struct: failed on block: {"header":"Header","extrinsics":"Vec<Extrinsic>"}:: Struct: failed on extrinsics: Vec<Extrinsic>:: createType(ExtrinsicV4):: createType(ExtrinsicSignatureV4):: decodeU8aStruct: failed at 0xb7469c43535c826e29c30d25a9f3a035… on signer (index 1/5): {"_enum":{"Id":"AccountId","Index":"Compact<AccountIndex>","Raw":"Bytes","Address32":"H256","Address20":"H160"}}:: Unable to create Enum via index 183, in Id, Index, Raw, Address32, Address20
Steps to Reproduce:
Use polkadot.js API version 14.2.1 to connect to the parachain node.
The error indicates a problem with decoding the signer field of an extrinsic's signature, specifically an issue with an enum index that doesn't match expected variants.
The text was updated successfully, but these errors were encountered:
asiniscalchi
changed the title
Unable to Decode Block with polkadot.js API v13.*, Works with v12.4.2
Unable to Decode Block with polkadot.js API v14.2.1, Works with v12.4.2
Nov 5, 2024
I'm encountering an issue when decoding blocks on LAOS parachain using polkadot.js API version
14.2.1
. Specifically, when attempting to decode block54522
, the API throws an error. However, using version12.4.2
, the block decodes properly without any issues.Error Message:
createType(SignedBlock):: Struct: failed on block: {"header":"Header","extrinsics":"Vec<Extrinsic>"}:: Struct: failed on extrinsics: Vec<Extrinsic>:: createType(ExtrinsicV4):: createType(ExtrinsicSignatureV4):: decodeU8aStruct: failed at 0xb7469c43535c826e29c30d25a9f3a035… on signer (index 1/5): {"_enum":{"Id":"AccountId","Index":"Compact<AccountIndex>","Raw":"Bytes","Address32":"H256","Address20":"H160"}}:: Unable to create Enum via index 183, in Id, Index, Raw, Address32, Address20
Steps to Reproduce:
14.2.1
to connect to the parachain node.54522
.Expected Behavior:
The block should decode successfully, returning the block data without any errors—consistent with the behavior in polkadot.js API version
12.4.2
.Actual Behavior:
An error occurs during the decoding process when using polkadot.js API version
14.2.1
, preventing access to the block data.Additional Information:
14.2.1
.12.4.2
resolves the issue.signer
field of an extrinsic's signature, specifically an issue with an enum index that doesn't match expected variants.Environment:
14.2.1
12.4.2
wss://rpc.laos.laosfoundation.io
54522
The text was updated successfully, but these errors were encountered: