mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
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:
committed by
GitHub
parent
ced0281e56
commit
ff5c46c510
@@ -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.
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user