diff --git a/Cargo.lock b/Cargo.lock index 6beeffae..009deb1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1347,7 +1347,7 @@ dependencies = [ [[package]] name = "debio" -version = "2.1.3" +version = "2.1.4" dependencies = [ "beefy-gadget", "beefy-gadget-rpc", @@ -1406,7 +1406,7 @@ dependencies = [ [[package]] name = "debio-runtime" -version = "2.1.3" +version = "2.1.4" dependencies = [ "beefy-primitives", "certifications", diff --git a/node/Cargo.toml b/node/Cargo.toml index e71e7cba..2b2d93c7 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = 'debio' -version = '2.1.3' +version = '2.1.4' edition = '2021' license = 'AGPL-3.0' authors = ['DeBio Dev Team '] diff --git a/pallets/genetic-analysts/src/migrations.rs b/pallets/genetic-analysts/src/migrations.rs index 4a26c86e..5fae5c4a 100644 --- a/pallets/genetic-analysts/src/migrations.rs +++ b/pallets/genetic-analysts/src/migrations.rs @@ -10,7 +10,7 @@ use primitives_verification_status::VerificationStatus; pub fn migrate() -> Weight { use frame_support::traits::StorageVersion; - let version = StorageVersion::get::>(); + let mut version = StorageVersion::get::>(); let mut weight: Weight = 0; if version < 2 { @@ -18,6 +18,8 @@ pub fn migrate() -> Weight { StorageVersion::new(2).put::>(); } + version = StorageVersion::get::>(); + if version == 2 { weight = weight.saturating_add(v3::migrate::()); StorageVersion::new(3).put::>(); diff --git a/pallets/labs/src/migrations.rs b/pallets/labs/src/migrations.rs index 4f914e40..313d834b 100644 --- a/pallets/labs/src/migrations.rs +++ b/pallets/labs/src/migrations.rs @@ -9,7 +9,7 @@ use primitives_verification_status::VerificationStatus; pub fn migrate() -> Weight { use frame_support::traits::StorageVersion; - let version = StorageVersion::get::>(); + let mut version = StorageVersion::get::>(); let mut weight: Weight = 0; if version < 2 { @@ -17,6 +17,8 @@ pub fn migrate() -> Weight { StorageVersion::new(2).put::>(); } + version = StorageVersion::get::>(); + if version == 2 { weight = weight.saturating_add(v3::migrate::()); StorageVersion::new(3).put::>(); diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 18d1809c..a6cb27f1 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = 'debio-runtime' -version = '2.1.3' +version = '2.1.4' edition = '2021' license = 'AGPL-3.0' authors = ['DeBio Dev Team '] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index eda5ae30..62591a46 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: 2013, + spec_version: 2014, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,