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

Polkadot xcm type cannot be parsed (Bifrost chain) #5887

Open
hqwangningbo opened this issue May 21, 2024 · 3 comments
Open

Polkadot xcm type cannot be parsed (Bifrost chain) #5887

hqwangningbo opened this issue May 21, 2024 · 3 comments

Comments

@hqwangningbo
Copy link

    const wsProvider = new WsProvider("wss://hk.p.bifrost-rpc.liebi.com/ws");
    const parachain_api =  await ApiPromise.create({ provider: wsProvider });

    const result = await parachain_api.query.polkadotXcm.queries(0);
    console.log(result.toString()) // {"versionNotifier":{"origin":{"v2":{"parents":1,"interior":{"here":null}}},"isActive":true}}
    const result1 = await parachain_api.query.polkadotXcm.queries(1);
    // error: Error: Unable to decode storage polkadotXcm.queries

full logs:
Error: Unable to decode storage polkadotXcm.queries: entry 0:: createType(PalletXcmQueryStatus):: {"_enum":{"Pending":"{"responder":"XcmVersionedMultiLocation","maybeMatchQuerier":"Option","maybeNotify":"Option<(u8,u8)>","timeout":"u32"}","VersionNotifier":"{"origin":"XcmVersionedMultiLocation","isActive":"bool"}","Ready":"{"response":"XcmVersionedResponse","at":"u32"}"}}:: Decoded input doesn't match input, received 0x0001010000e0d80900 (9 bytes), created 0x000101000001d80900000000 (12 bytes)

@TarikGul
Copy link
Member

TarikGul commented May 27, 2024

Looks to be an issue with the provided types. Is PalletXcmQueryStatus a Bifrost speciifc type?

Was this working before then there was some sort of update with bifrost?

@hqwangningbo
Copy link
Author

Since polkadotXcm is maintained by the polkadot sdk, I didn't pay attention to it, but just stumbled upon this problem

@TarikGul
Copy link
Member

Thanks, I'll have a look into this and see if It can be resolved today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants