Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

frame_support::pallet_prelude: Add scale_info::TypeInfo #10221

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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