Make New Storage Layer Truly Default (#11918)

* with storage layer truly default

* fmt

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabriziandparity-processbot authored and GitHub committed 2022-07-26 17:49:11 +00:00
1 parent 7bdeb960c3
commit 72522429a7
6 files changed
+9 -41

No files matched your search

@@ -236,23 +236,6 @@ pub trait UnfilteredDispatchable {
fn dispatch_bypass_filter(self, origin: Self::Origin) -> DispatchResultWithPostInfo;
}
/// Type that can be dispatched with an additional storage layer which is used to execute the call.
pub trait DispatchableWithStorageLayer {
/// The origin type of the runtime, (i.e. `frame_system::Config::Origin`).
type Origin;
/// Same as `dispatch` from the [`frame_support::dispatch::Dispatchable`] trait, but
/// specifically spawns a new storage layer to execute the call inside of.
fn dispatch_with_storage_layer(self, origin: Self::Origin) -> DispatchResultWithPostInfo;
/// Same as `dispatch_bypass_filter` from the [`UnfilteredDispatchable`] trait, but specifically
/// spawns a new storage layer to execute the call inside of.
fn dispatch_bypass_filter_with_storage_layer(
self,
origin: Self::Origin,
) -> DispatchResultWithPostInfo;
}
/// Methods available on `frame_system::Config::Origin`.
pub trait OriginTrait: Sized {
/// Runtime call type, as in `frame_system::Config::Call`