mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-27 22:19:49 +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:
1 parent
74e8691aa8
commit
87c18598fc
7 files changed
+58
-16
No files matched your search
@@ -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