Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce TransactionExtensionPipeline to use instead of tuple for pipeline with more than 12 elements #6571

Closed
wants to merge 14 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ use super::{

mod as_transaction_extension;
mod dispatch_transaction;
mod transaction_extension_pipeline;
#[allow(deprecated)]
pub use as_transaction_extension::AsTransactionExtension;
pub use dispatch_transaction::DispatchTransaction;
pub use transaction_extension_pipeline::{
TransactionExtensionPipeline, TransactionExtensionPipelineImplicit,
};

/// Shortcut for the result value of the `validate` function.
pub type ValidateResult<Val, Call> =
Expand Down Expand Up @@ -610,9 +614,11 @@ impl<Call: Dispatchable> TransactionExtension<Call> for () {
}
type Val = ();
type Pre = ();
#[inline]
fn weight(&self, _call: &Call) -> Weight {
Weight::zero()
}
#[inline]
fn validate(
&self,
origin: <Call as Dispatchable>::RuntimeOrigin,
Expand All @@ -628,6 +634,7 @@ impl<Call: Dispatchable> TransactionExtension<Call> for () {
> {
Ok((ValidTransaction::default(), (), origin))
}
#[inline]
fn prepare(
self,
_val: (),
Expand Down
Loading
Loading