Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to decode some storage items #3981

Closed
insipx opened this issue Sep 20, 2021 · 4 comments
Closed

unable to decode some storage items #3981

insipx opened this issue Sep 20, 2021 · 4 comments

Comments

@insipx
Copy link

insipx commented Sep 20, 2021

While running tests for sidecar with polkadot-js versions v6.0.5 came across a few types that failed to decode properly (sidecar PR)

2021-09-20 15:32:09 error: RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage system.events:: createType(LastRuntimeUpgradeInfo):: {"specVersion":"Compact<u32>","specName":"Text"}:: Decoded input doesn't match input, received 0x180000000000000080e36a090000000002000000010000000000000000000000…010000000000000000000000000000030000000000000b6b1b00000000000000 (153 bytes), created 0x1800 (2 bytes)

2021-09-20 15:32:09 error: RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage session.validators:: createType(ValidatorId):: AccountId:: Decoded input doesn't match input, received 0x15032c2a55b5a116a4c88aff57e8f2b70ba72dda72dda4b78630e16ad0ca6900…b8e06dc2e6bb6bd269319ace4cf8f663338f8f285a0564d6a139063c985d2310 (6306 bytes), created 0x15032c2a55b5a116a4c88aff57e8f2b70ba72dda72dda4b78630e16ad0ca6900 (32 bytes)

2021-09-20 15:32:40 error: RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage system.events:: createType(LastRuntimeUpgradeInfo):: {"specVersion":"Compact<u32>","specName":"Text"}:: Decoded input doesn't match input, received 0x1c0000000000000080e36a090000000002000000010000000000000000000000…0100000000000000000000000000000300000000008093dc1400000000000000 (209 bytes), created 0x1c00 (2 bytes)

2021-09-20 15:32:40 error: RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage session.validators:: createType(ValidatorId):: AccountId:: Decoded input doesn't match input, received 0x15030ea81d109d526eebecfc18c680281235a4bf23fade14e838d120a2943a48…9c6bae578812080b2f9ecdef913f4f68abc3dcee697f505625e8430c8ce3122c (6306 bytes), created 0x15030ea81d109d526eebecfc18c680281235a4bf23fade14e838d120a2943a48 (32 bytes)

2021-09-20 15:33:09 error: RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage system.events:: createType(LastRuntimeUpgradeInfo):: {"specVersion":"Compact<u32>","specName":"Text"}:: Decoded input doesn't match input, received 0x3400000000000000482d7c090000000002000000010000000000000000000000…000000000000000000000000030000000001030502c01c3d0900000000000000 (516 bytes), created 0x3400 (2 bytes)

2021-09-20 15:33:09 error: RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage session.validators:: createType(ValidatorId):: AccountId:: Decoded input doesn't match input, received 0x15030ad57cf7ec770f7d356b96e7b5abed7e10fed2c60c21cd43a558ccd33cee…8c23324b0cb29e4fd1a68cb08febe58b50e39d8afdb5f752d6c26c8ba52fc002 (6306 bytes), created 0x15030ad57cf7ec770f7d356b96e7b5abed7e10fed2c60c21cd43a558ccd33cee (32 bytes)

thought this was related to metadata v14 update, looks like an issue with AccountId's maybe?

@jacogr
Copy link
Member

jacogr commented Sep 20, 2021

At which block/chain for the events? (Checked Polkadot, Kusama, Westend for the block in the PR and they all decode without issues on the apps UI which is on 6.0.5)

For v13 chains, ensure it is on 6.0.5, earlier has issues in a variety of ways. (The PR is still on 6.0.2 which is known problematic)

There are quite probably still some dragons lurking, but before 6.0.5 they are now known dragons. Happy to look at specific chains/block/hashes where there are any issues, on the latest API, aka also failing in e.g. the apps UI.

@TarikGul
Copy link
Member

Sorry for jumping in this late, currently OOO. But that being said, @jacogr 6.0.2 as you said is where the issues lie in our PR but a bump to 6.0.5 fixes our decoding issue. Thanks again.

@insipx
Copy link
Author

insipx commented Oct 2, 2021

I think this issue is solved, thanks for the help @jaco, I'll close this

@insipx insipx closed this as completed Oct 2, 2021
@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants