From 2635ea8ac3c9487ee2688190405470f846683bab Mon Sep 17 00:00:00 2001 From: Irman Nur Muhammad Alamsyah Date: Fri, 26 Aug 2022 15:31:37 +0700 Subject: [PATCH] fix: on null value pallet migration (#346) --- Cargo.lock | 4 ++-- node/Cargo.toml | 2 +- pallets/genetic-analysis-orders/src/migrations.rs | 2 +- pallets/genetic-analysts/src/migrations.rs | 2 +- pallets/labs/src/migrations.rs | 2 +- pallets/rewards/src/migrations.rs | 2 +- runtime/Cargo.toml | 2 +- runtime/src/lib.rs | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 009deb1b..6beeffae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1347,7 +1347,7 @@ dependencies = [ [[package]] name = "debio" -version = "2.1.4" +version = "2.1.3" dependencies = [ "beefy-gadget", "beefy-gadget-rpc", @@ -1406,7 +1406,7 @@ dependencies = [ [[package]] name = "debio-runtime" -version = "2.1.4" +version = "2.1.3" dependencies = [ "beefy-primitives", "certifications", diff --git a/node/Cargo.toml b/node/Cargo.toml index 2b2d93c7..e71e7cba 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = 'debio' -version = '2.1.4' +version = '2.1.3' edition = '2021' license = 'AGPL-3.0' authors = ['DeBio Dev Team '] diff --git a/pallets/genetic-analysis-orders/src/migrations.rs b/pallets/genetic-analysis-orders/src/migrations.rs index 9e32ea8a..eacf1a7f 100644 --- a/pallets/genetic-analysis-orders/src/migrations.rs +++ b/pallets/genetic-analysis-orders/src/migrations.rs @@ -19,7 +19,7 @@ mod v2 { use super::*; pub fn migrate() -> Weight { - PalletAccount::::put(>::account_id()); + PalletAccount::::put(>::get_pallet_id()); T::DbWeight::get().writes(1) } diff --git a/pallets/genetic-analysts/src/migrations.rs b/pallets/genetic-analysts/src/migrations.rs index 486e0181..4a26c86e 100644 --- a/pallets/genetic-analysts/src/migrations.rs +++ b/pallets/genetic-analysts/src/migrations.rs @@ -73,7 +73,7 @@ mod v3 { use super::*; pub fn migrate() -> Weight { - PalletAccount::::put(>::account_id()); + PalletAccount::::put(>::get_pallet_id()); T::DbWeight::get().writes(1) } diff --git a/pallets/labs/src/migrations.rs b/pallets/labs/src/migrations.rs index b1f841d7..4f914e40 100644 --- a/pallets/labs/src/migrations.rs +++ b/pallets/labs/src/migrations.rs @@ -66,7 +66,7 @@ mod v3 { use super::*; pub fn migrate() -> Weight { - PalletAccount::::put(>::account_id()); + PalletAccount::::put(>::get_pallet_id()); T::DbWeight::get().writes(1) } diff --git a/pallets/rewards/src/migrations.rs b/pallets/rewards/src/migrations.rs index 9e32ea8a..eacf1a7f 100644 --- a/pallets/rewards/src/migrations.rs +++ b/pallets/rewards/src/migrations.rs @@ -19,7 +19,7 @@ mod v2 { use super::*; pub fn migrate() -> Weight { - PalletAccount::::put(>::account_id()); + PalletAccount::::put(>::get_pallet_id()); T::DbWeight::get().writes(1) } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index a6cb27f1..18d1809c 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = 'debio-runtime' -version = '2.1.4' +version = '2.1.3' edition = '2021' license = 'AGPL-3.0' authors = ['DeBio Dev Team '] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 62591a46..eda5ae30 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -204,7 +204,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 2014, + spec_version: 2013, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,