mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Move IsSubType and write some docs for the trait (#7350)
* Move `IsSubType` and write some docs for the trait This moves the `IsSubType` trait from dispatch.rs to traits.rs. It also adds docs to make the trait better understandable. * Update frame/support/src/traits.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -44,9 +44,8 @@ use sp_io::hashing::blake2_256;
|
||||
use sp_runtime::{DispatchResult, traits::{Dispatchable, Zero, Hash, Member, Saturating}};
|
||||
use frame_support::{
|
||||
decl_module, decl_event, decl_error, decl_storage, Parameter, ensure, RuntimeDebug, traits::{
|
||||
Get, ReservableCurrency, Currency, InstanceFilter, OriginTrait, IsType,
|
||||
}, weights::{Weight, GetDispatchInfo},
|
||||
dispatch::{PostDispatchInfo, IsSubType}, storage::IterableStorageMap,
|
||||
Get, ReservableCurrency, Currency, InstanceFilter, OriginTrait, IsType, IsSubType,
|
||||
}, weights::{Weight, GetDispatchInfo}, dispatch::PostDispatchInfo, storage::IterableStorageMap,
|
||||
};
|
||||
use frame_system::{self as system, ensure_signed};
|
||||
use frame_support::dispatch::DispatchError;
|
||||
|
||||
Reference in New Issue
Block a user