Skip to content

decode error for U8a #25

@alanpoon

Description

@alanpoon

RPC-CORE: getMetadata (block: Hash): Metadata:: createType(Metadata):: U8a: failed on 'MagicNumber':: U8a: failed on 'MetadataEnum':: Unable to create Enum via index 8, in V0, V1, V2, V3, V4, V5, V6, V7
API/DECORATOR: Error: FATAL: Unable to initialize the API: getMetadata (block: Hash): Metadata:: createType(Metadata):: U8a: failed on 'MagicNumber':: U8a: failed on 'MetadataEnum':: Unable to create Enum via index 8, in V0, V1, V2, V3, V4, V5, V6, V7
at EventEmitter.Init._onProviderConnect

node: https://github.com/cennznet/cennznet/tree/feature/60-add-cennzx
frontend dependencies: "dependencies": {
"@cennznet/crml-attestation": "^0.20.7",
"@cennznet/crml-cennzx-spot": "^0.20.7",
"@cennznet/crml-generic-asset": "^0.20.7",
"@cennznet/types": "^0.20.7",
"@plugnet/api": "^0.90.104",
"@plugnet/api-metadata": "^0.90.104",
"@plugnet/rpc-core": "^0.90.104",
"@plugnet/rpc-provider": "^0.90.104",
"@plugnet/types": "^0.90.104",
"eventemitter3": "^4.0.0"
},

Found the ans: I need metadata v8
https://github.com/polkadot-js/api/tree/master/packages/metadata/src/Metadata/v8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions