Skip to content

Commit

Permalink
fix: on null value pallet migration (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmannmal authored Aug 26, 2022
1 parent 5bd40e8 commit 2635ea8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>']
Expand Down
2 changes: 1 addition & 1 deletion pallets/genetic-analysis-orders/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mod v2 {
use super::*;

pub fn migrate<T: Config>() -> Weight {
PalletAccount::<T>::put(<Pallet<T>>::account_id());
PalletAccount::<T>::put(<Pallet<T>>::get_pallet_id());

T::DbWeight::get().writes(1)
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/genetic-analysts/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ mod v3 {
use super::*;

pub fn migrate<T: Config>() -> Weight {
PalletAccount::<T>::put(<Pallet<T>>::account_id());
PalletAccount::<T>::put(<Pallet<T>>::get_pallet_id());

T::DbWeight::get().writes(1)
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/labs/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mod v3 {
use super::*;

pub fn migrate<T: Config>() -> Weight {
PalletAccount::<T>::put(<Pallet<T>>::account_id());
PalletAccount::<T>::put(<Pallet<T>>::get_pallet_id());

T::DbWeight::get().writes(1)
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/rewards/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mod v2 {
use super::*;

pub fn migrate<T: Config>() -> Weight {
PalletAccount::<T>::put(<Pallet<T>>::account_id());
PalletAccount::<T>::put(<Pallet<T>>::get_pallet_id());

T::DbWeight::get().writes(1)
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>']
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2635ea8

Please sign in to comment.