pub trait CreateBare<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§
Sourcefn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic
fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic
Create a bare extrinsic.
Bare extrinsic are used for inherent extrinsic and unsigned transaction.
Provided Methods§
Sourcefn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic
👎Deprecated: Use create_bare
instead
fn create_inherent(call: Self::RuntimeCall) -> Self::Extrinsic
create_bare
insteadCreate 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.