diff --git a/runtime/crab/src/migration.rs b/runtime/crab/src/migration.rs index 65e5ada87..5351fcc33 100644 --- a/runtime/crab/src/migration.rs +++ b/runtime/crab/src/migration.rs @@ -45,10 +45,13 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { } fn migrate() -> frame_support::weights::Weight { + frame_support::traits::StorageVersion::new(2) + .put::>(); + const KTON_DAO_VAULT_ADDR: &str = "0x652182C6aBc0bBE41b5702b05a26d109A405EAcA"; #[cfg(feature = "try-runtime")] - assert!(array_bytes::hex_n_into::<_, _, 20>(KTON_DAO_VAULT_ADDR).is_ok()); + assert!(array_bytes::hex_n_into::<_, AccountId, 20>(KTON_DAO_VAULT_ADDR).is_ok()); if let Ok(w) = array_bytes::hex_n_into::<_, _, 20>(KTON_DAO_VAULT_ADDR) { >::put(w); diff --git a/runtime/darwinia/src/migration.rs b/runtime/darwinia/src/migration.rs index e78d2eba2..5eabcef42 100644 --- a/runtime/darwinia/src/migration.rs +++ b/runtime/darwinia/src/migration.rs @@ -45,6 +45,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { } fn migrate() -> frame_support::weights::Weight { + frame_support::traits::StorageVersion::new(2) + .put::>(); + let _ = migration::clear_storage_prefix( b"BridgeKusamaGrandpa", b"ImportedHeaders", @@ -64,7 +67,7 @@ fn migrate() -> frame_support::weights::Weight { const KTON_DAO_VAULT_ADDR: &str = "0x652182C6aBc0bBE41b5702b05a26d109A405EAcA"; #[cfg(feature = "try-runtime")] - assert!(array_bytes::hex_n_into::<_, _, 20>(KTON_DAO_VAULT_ADDR).is_ok()); + assert!(array_bytes::hex_n_into::<_, AccountId, 20>(KTON_DAO_VAULT_ADDR).is_ok()); if let Ok(w) = array_bytes::hex_n_into::<_, _, 20>(KTON_DAO_VAULT_ADDR) { >::put(w); diff --git a/runtime/koi/src/migration.rs b/runtime/koi/src/migration.rs index ffc8384b6..2df0bfd6d 100644 --- a/runtime/koi/src/migration.rs +++ b/runtime/koi/src/migration.rs @@ -45,13 +45,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { } fn migrate() -> frame_support::weights::Weight { - let n = migration_helper::PalletCleaner { - name: b"EthereumXcm", - values: &[b"Nonce", b"EthereumXcmSuspended"], - maps: &[], - } - .remove_storage_values(); + frame_support::traits::StorageVersion::new(2) + .put::>(); // frame_support::weights::Weight::zero() - ::DbWeight::get().reads_writes(0, n) + ::DbWeight::get().reads_writes(0, 1) }