Skip to content

Commit

Permalink
Scheduler is already at V4 (paritytech#13105)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ggwpez authored and ltfschoen committed Feb 22, 2023
1 parent 2a36e2d commit fa8cc0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frame/referenda/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion frame/scheduler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion frame/scheduler/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit fa8cc0e

Please sign in to comment.