We just migrated from substrate v3 to substrate v4, after that I expected to have metadata V14 when I'll call state_getMetadata rpc method. but I still get V12 metadata and I don't understand why.

If you have an idea.. thank you.

  • How did you do the upgrade? Are you testing on a live chain? Please provide more detail. Aug 11, 2022 at 11:21
  • @AurevoirXavier I am testing on the local chain : gist.github.com/ascjones/0d81a4c44e84cacd9f714cd34a6de823 -> sounds good on our side ! maybe we need to update something else ?
    – cibou
    Aug 11, 2022 at 11:54
  • Do you do the runtime upgrade for your local chain? If you are using the dev chain. I think it should work. What's your Substrate version? IIUC, If you don't make types derive from TypeInfo then the pallet can not be compiled. If you could compile then it should work. Aug 11, 2022 at 11:56
  • This is how polkadot do the upgrade. github.com/paritytech/polkadot/pull/3336/files Aug 11, 2022 at 12:00
  • yes, thank you, just our version of scale-info is scale-info = { version = "2.0.1", default-features = false, features = ["derive"] }
    – cibou
    Aug 11, 2022 at 12:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.