Scheduler is already at V4 (#13105)

* Scheduler is already at V4

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix Referenda log target

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-01-11 17:16:56 +01:00
committed by GitHub
parent ced0281e56
commit ff5c46c510
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ pub mod v1 {
use super::*;
/// The log target.
const TARGET: &'static str = "runtime::democracy::migration::v1";
const TARGET: &'static str = "runtime::referenda::migration::v1";
/// Transforms a submission deposit of ReferendumInfo(Approved|Rejected|Cancelled|TimedOut) to
/// optional value, making it refundable.
+1 -1
View File
@@ -169,7 +169,7 @@ pub mod pallet {
use frame_system::pallet_prelude::*;
/// The current storage version.
const STORAGE_VERSION: StorageVersion = StorageVersion::new(3);
const STORAGE_VERSION: StorageVersion = StorageVersion::new(4);
#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
+1 -1
View File
@@ -973,7 +973,7 @@ fn migration_to_v4_works() {
}
assert_eq_uvec!(x, expected);
assert_eq!(Scheduler::current_storage_version(), 3);
assert_eq!(Scheduler::on_chain_storage_version(), 4);
});
}