Skip to content

Commit

Permalink
frame_support::pallet_prelude: Add scale_info::TypeInfo (paritytech#1…
Browse files Browse the repository at this point in the history
…0221)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
  • Loading branch information
koushiro authored and ark0f committed Feb 27, 2023
1 parent 834acd9 commit 41fdb28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion frame/assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ pub mod pallet {
use super::*;
use frame_support::{dispatch::DispatchResult, pallet_prelude::*};
use frame_system::pallet_prelude::*;
use scale_info::TypeInfo;

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
Expand Down
8 changes: 4 additions & 4 deletions frame/assets/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
//! Various basic types for use in the assets pallet.

use super::*;
use frame_support::pallet_prelude::*;
use scale_info::TypeInfo;

use frame_support::traits::{fungible, tokens::BalanceConversion};
use frame_support::{
pallet_prelude::*,
traits::{fungible, tokens::BalanceConversion},
};
use sp_runtime::{traits::Convert, FixedPointNumber, FixedPointOperand, FixedU128};

pub(super) type DepositBalanceOf<T, I = ()> =
Expand Down
1 change: 0 additions & 1 deletion frame/gilt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ pub mod pallet {
traits::{Currency, OnUnbalanced, ReservableCurrency},
};
use frame_system::pallet_prelude::*;
use scale_info::TypeInfo;
use sp_arithmetic::{PerThing, Perquintill};
use sp_runtime::traits::{Saturating, Zero};
use sp_std::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions frame/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,7 @@ pub mod pallet_prelude {
PartialEqNoBound, RuntimeDebug, RuntimeDebugNoBound, Twox128, Twox256, Twox64Concat,
};
pub use codec::{Decode, Encode, MaxEncodedLen};
pub use scale_info::TypeInfo;
pub use sp_runtime::{
traits::{MaybeSerializeDeserialize, Member, ValidateUnsigned},
transaction_validity::{
Expand Down

0 comments on commit 41fdb28

Please sign in to comment.