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

0.9.30 potential issue? #8197

Closed
gilescope opened this issue Oct 3, 2022 · 3 comments
Closed

0.9.30 potential issue? #8197

gilescope opened this issue Oct 3, 2022 · 3 comments

Comments

@gilescope
Copy link
Contributor

I'm just testing the 0.9.30 / 9300 draft build and seem to be getting some decode issues with getting the event state in polkadot-js

Unable to decode storage system.events:: createType(Vec<FrameSystemEventRecord>):: decodeU8a: failed at 0x000000000748accc420100020000… (index 1/2): {"phase":"FrameSystemPhase","event":"Event","topics":"Vec<H256>"}:: decodeU8a: failed at 0x48accc420100020000… on event (index 1/3): {"index":"EventId","data":"Null"}:: findMetaEvent: Unable to find Event with index [72, 172]/[72,172]

Here's the main stack trace:

main.d852fdcc.js:19 Error: useCall(society.candidates):: Unable to decode storage system.events: entry 8:: createType(Vec<FrameSystemEventRecord>):: decodeU8a: failed at 0x00003501e803000036f8b1ad2ab2fb28… (index 1/4): {"phase":"FrameSystemPhase","event":"Event","topics":"Vec<H256>"}:: decodeU8a: failed at 0x86035babbef3278f5eb86a3bb2802e0f… on topics (index 2/3): Vec<H256>:: Vec length 718717153 exceeds 65536:: Error: Unable to decode storage system.events: entry 8:: createType(Vec<FrameSystemEventRecord>):: decodeU8a: failed at 0x00003501e803000036f8b1ad2ab2fb28… (index 1/4): {"phase":"FrameSystemPhase","event":"Event","topics":"Vec<H256>"}:: decodeU8a: failed at 0x86035babbef3278f5eb86a3bb2802e0f… on topics (index 2/3): Vec<H256>:: Vec length 718717153 exceeds 65536
    at Qr._newType (polkadot.01.d33a9927.js:1:76773)
    at Qr._formatStorageSetEntry (polkadot.01.d33a9927.js:1:76294)
    at polkadot.01.d33a9927.js:1:76046
    at n.reduce (<anonymous>)
    at Qr._formatStorageSet (polkadot.01.d33a9927.js:1:76016)
    at Qr._formatOutput (polkadot.01.d33a9927.js:1:75549)
    at Qr._formatResult (polkadot.01.d33a9927.js:1:73323)
    at Object.p [as callback] (polkadot.01.d33a9927.js:1:74657)
    at Q.value (polkadot.01.d33a9927.js:1:124650)
    at WebSocket.value (polkadot.01.d33a9927.js:1:123806)
    at d (main.d852fdcc.js:19:87446)
    at main.d852fdcc.js:19:88777

Should I try main / is there a branch I can try? or do we think the issue is further down the stack?

@jacogr
Copy link
Member

jacogr commented Oct 3, 2022

See the comment/state here - polkadot-js/api#5256

@jacogr
Copy link
Member

jacogr commented Oct 4, 2022

Follow the progress for Weights V2 support here - #8188 (all PRs linked through there)

@jacogr jacogr closed this as completed Oct 4, 2022
@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 11, 2022
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

3 participants