paritytech / txwrapper-core

Tools for FRAME chain builders to publish chain specific offline transaction generation libraries.
https://paritytech.github.io/txwrapper-core/
Apache License 2.0
77 stars 28 forks source link

Does this error related to WeightV2 upgrade? #266

Closed code-brewer closed 1 year ago

code-brewer commented 1 year ago

I had a service that scan Tx from my own managed node who's version is 0.9.29, and my "@substrate/txwrapper-polkadot" version is fixed to "3.2.2" in package.json.

It run well, but today I find the scanning failed with bellow error:

createType(SignedBlock):: Struct: failed on block: {"header":"Header","extrinsics":"Vec"}:: Struct: failed on extrinsics: Vec:: createType(ExtrinsicV4):: createType(Call):: Call: failed decoding council.close:: Struct: failed on args: {"proposal_hash":"H256","index":"Compact","proposal_weight_bound":"Lookup239","length_bound":"Compact"}:: decodeU8a: failed at 0x02aee21488on proposal_weight_bound (index 2/4): Compact:: Struct: Cannot decode value 87600000 (typeof number), expected an input object, map or array Error: createType(SignedBlock):: Struct: failed on block: {"header":"Header","extrinsics":"Vec"}:: Struct: failed on extrinsics: Vec:: createType(ExtrinsicV4):: createType(Call):: Call: failed decoding council.close:: Struct: failed on args: {"proposal_hash":"H256","index":"Compact","proposal_weight_bound":"Lookup239","length_bound":"Compact"}:: decodeU8a: failed at 0x02aee21488on proposal_weight_bound (index 2/4): Compact:: Struct: Cannot decode value 87600000 (typeof number), expected an input object, map or array 1|storeman_agent_sync | 2022-11-15 13:49 +00:00: at createTypeUnsafe (/xxxx/node_modules/@polkadot/types-create/cjs/create/type.js:73:18) 1|storeman_agent_sync | 2022-11-15 13:49 +00:00: at TypeRegistry.createTypeUnsafe (/xxxx/node_modules/@polkadot/types/cjs/create/registry.js:353:46) 1|storeman_agent_sync | 2022-11-15 13:49 +00:00: at RpcCore._formatOutput (/xxxx/node_modules/@polkadot/rpc-core/cjs/bundle.js:427:21) 1|storeman_agent_sync | 2022-11-15 13:49 +00:00: at RpcCore._formatResult (/xxxx/node_modules/@polkadot/rpc-core/cjs/bundle.js:232:27) 1|storeman_agent_sync | 2022-11-15 13:49 +00:00: at callWithRegistry (/xxxx/node_modules/@polkadot/rpc-core/cjs/bundle.js:260:19) 1|storeman_agent_sync | 2022-11-15 13:49 +00:00: at processTicksAndRejections (internal/process/task_queues.js:95:5)

After searching, I found the most close issue : https://github.com/paritytech/txwrapper-core/issues/264 .

What I do not understand why it raise error as my node's version is 0.9.29 that is still use unsigned int . Can anyone explain this?

Anyway, what should I do to fix this problem?

Thanks.

TarikGul commented 1 year ago

Hey @code-brewer, apologies for the delay.

Are you still getting this error when using the upgraded runtime versions. Im not convinced this has to do with WeightsV2 issue on the other hand since it only concerns multisig transactions as far as txwrapper-core goes.

Question, What transaction are you constructing?

TarikGul commented 1 year ago

hey @code-brewer, is this still an issue for you? Going to close this issue as stale soon.