3

I have a chain running with some pallets in the runtime. Now I want to add a new (already existing) pallet in the runtime, but this pallet has some genesis config entries.

Is it possible to add this pallet in the runtime as part of a forkless upgrade?

One way I could think of achieving this is to use storage migrations which would populate the storage values needed for config items. Would this be a good practice or is there a better solution?

1 Answer 1

2

Yes, a migration is the right way to do this.

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.