referrerpolicy=no-referrer-when-downgrade

Trait CreateInherent

pub trait CreateInherent<LocalCall>: CreateTransactionBase<LocalCall> {
    // Required method
    fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic;

    // Provided method
    fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic { ... }
}
Expand description

Interface for creating a bare extrinsic.

Bare extrinsic are used for inherent extrinsic and unsigned transaction.

Required Methods§

fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic

Create a bare extrinsic.

Bare extrinsic are used for inherent extrinsic and unsigned transaction.

Provided Methods§

fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic

👎Deprecated: Use create_bare instead

Create an inherent.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<LocalCall> CreateBare<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateBare<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateBare<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateBare<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<C> CreateBare<C> for Runtime
where RuntimeCall: From<C>,

impl<LocalCall> CreateBare<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateBare<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,