Skip to content

Commit

Permalink
updates after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonwells committed Nov 15, 2023
1 parent b3f35fb commit a6f250e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pallets/capacity/src/migration/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use sp_std::{fmt::Debug, vec::Vec};
/// Only contains V1 storage format
pub mod v1 {
use super::*;
use codec::{Decode, Encode, MaxEncodedLen};
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use frame_support::{storage_alias, BoundedVec, Twox64Concat};
use scale_info::TypeInfo;

Expand Down Expand Up @@ -87,7 +87,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateToV2<T> {

#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<Vec<u8>, sp_runtime::TryRuntimeError> {
use codec::Encode;
use parity_scale_codec::Encode;
use frame_support::storage::generator::StorageMap;
let pallet_prefix = v1::StakingAccountLedger::<T>::module_prefix();
let storage_prefix = v1::StakingAccountLedger::<T>::storage_prefix();
Expand All @@ -102,7 +102,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateToV2<T> {

#[cfg(feature = "try-runtime")]
fn post_upgrade(state: Vec<u8>) -> Result<(), sp_runtime::TryRuntimeError> {
use codec::Decode;
use parity_scale_codec::Decode;
let pre_upgrade_count: u32 = Decode::decode(&mut state.as_slice()).unwrap_or_default();
let on_chain_version = Pallet::<T>::on_chain_storage_version();

Expand Down
3 changes: 1 addition & 2 deletions pallets/capacity/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! Types for the Capacity Pallet
use super::*;
use frame_support::{BoundedVec, EqNoBound, PartialEqNoBound, RuntimeDebugNoBound};
use log::warn;
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
use sp_runtime::{
traits::{CheckedAdd, CheckedSub, Saturating, Zero},
Expand Down
4 changes: 2 additions & 2 deletions runtime/frequency/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("frequency"),
impl_name: create_runtime_str!("frequency"),
authoring_version: 1,
spec_version: 63,
spec_version: 64,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -276,7 +276,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("frequency-rococo"),
impl_name: create_runtime_str!("frequency"),
authoring_version: 1,
spec_version: 63,
spec_version: 64,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit a6f250e

Please sign in to comment.