frame_support::pallet_prelude: reexport StorageVersion (#11408)

* frame_support::pallet_prelude: reexport StorageVersion

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* cargo fmt

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2022-05-18 02:28:34 +08:00
committed by GitHub
parent f64470529e
commit 8bce841d70
16 changed files with 44 additions and 51 deletions
+8 -4
View File
@@ -57,15 +57,15 @@ pub mod weights;
use codec::{Decode, Encode, MaxEncodedLen};
use frame_support::{
dispatch::{DispatchError, DispatchResult},
ensure,
pallet_prelude::*,
storage::bounded_vec::BoundedVec,
traits::{
Currency, ExistenceRequirement, Get, LockIdentifier, LockableCurrency, VestingSchedule,
WithdrawReasons,
},
weights::Weight,
};
use frame_system::{ensure_root, ensure_signed, pallet_prelude::*};
pub use pallet::*;
use scale_info::TypeInfo;
use sp_runtime::{
traits::{
@@ -74,7 +74,9 @@ use sp_runtime::{
},
RuntimeDebug,
};
use sp_std::{fmt::Debug, prelude::*};
use sp_std::{fmt::Debug, marker::PhantomData, prelude::*};
pub use pallet::*;
pub use vesting_info::*;
pub use weights::WeightInfo;
@@ -146,6 +148,8 @@ impl<T: Config> Get<u32> for MaxVestingSchedulesGet<T> {
#[frame_support::pallet]
pub mod pallet {
use super::*;
use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;
#[pallet::config]
pub trait Config: frame_system::Config {
+1 -1
View File
@@ -17,7 +17,7 @@
use frame_support::{
parameter_types,
traits::{ConstU32, ConstU64},
traits::{ConstU32, ConstU64, GenesisBuild},
};
use sp_core::H256;
use sp_runtime::{