Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A0-3149: Enable, in a correct way, multi block contract migrations (#…
…1430) # Description In order to enable pallet contracts multi block migrations, one need to do two changes in the runtime: 1. Specify all migrations structs in `impl Runtime for pallet_contracts`, `Migrations` trait, and 2. Specify `pallet_contracts::migration::Migration<Runtime>` struct in `Executive`, aleong withh all current migrations We missed point 2 which this PR fixes. This design is as follow: ``` //! When a migration starts and [OnRuntimeUpgrade::on_runtime_upgrade] is called, instead of //! performing the actual migration, we set a custom storage item [MigrationInProgress]. //! This storage item defines a [Cursor] for the current migration. ``` see https://github.com/Cardinal-Cryptography/substrate/blob/aleph-v1.0.0/frame/contracts/src/migration.rs#L292 ## Type of change Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue)
- Loading branch information