4

I Just clone this https://github.com/OAK-Foundation/substrate-node-template/tree/nicks-v2 for storage migration. After launch on polkadot ,this error shows:enter image description here

I'm using following commands to run:

  1. ./target/release/node-template --dev
  2. cp target/release/wbuild/node-template-runtime/node_template_runtime.wasm upgrade2.compact.wasm (upload this file in Developer > Sudo, system.setCode) For submitting Above file it shows SpecVersionNeedsToIncrease, However I increase the version many times 100 -> 101 -> 102 -> 103...

Upload types.json contain this code : { "Nickname": { "first": "Vec", "last": "Option<Vec>" }, }

1 Answer 1

6

Increment spec_version in the code, rebuild the WASM and perform the upgrade.

When upgrading the check will be done on the actual WASM blob to ensure that the version has been increased. (This is the check the error comes from)

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.