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

Complete metadata implementation #110

Closed
failfmi opened this issue May 30, 2023 · 0 comments · Fixed by #111
Closed

Complete metadata implementation #110

failfmi opened this issue May 30, 2023 · 0 comments · Fixed by #111
Assignees

Comments

@failfmi
Copy link
Collaborator

failfmi commented May 30, 2023

Remove the hard-coded metadata used from node-template and add the missing metadata types. Keep in mind that metadata type path has to be used if you want to successfully connect to polkadotjs, as it is uses path field to rebuilt most types and those paths have to be consistent with Substrate.

Example:

  /**
   * Lookup8: frame_support::dispatch::PerDispatchClass<sp_weights::weight_v2::Weight>
   **/
  FrameSupportDispatchPerDispatchClassWeight: {
    normal: 'SpWeightsWeightV2Weight',
    operational: 'SpWeightsWeightV2Weight',
    mandatory: 'SpWeightsWeightV2Weight'
  },
  /**
   * Lookup9: sp_weights::weight_v2::Weight
   **/
  SpWeightsWeightV2Weight: {
    refTime: 'Compact<u64>',
    proofSize: 'Compact<u64>'
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant