TestXt

Type Alias TestXt 

Source
pub type TestXt<Call, Extra> = UncheckedExtrinsic<u64, Call, (), Extra>;
Expand description

Extrinsic type with u64 accounts and mocked signatures, used in testing.

Aliased Type§

pub struct TestXt<Call, Extra> {
    pub preamble: Preamble<u64, (), Extra>,
    pub function: Call,
    pub encoded_call: Option<Vec<u8>>,
}

Fields§

§preamble: Preamble<u64, (), Extra>

Information regarding the type of extrinsic this is (inherent or transaction) as well as associated extension (Extension) data if it’s a transaction and a possible signature.

§function: Call

The function that should be called.

§encoded_call: Option<Vec<u8>>

Stores the raw encoded call.

This is mainly interesting if this extrinsic was created by decoding it from bytes. In this case this field should be set to Some holding the original bytes used to decode the Self::function. This is done to protect against decode implementations of Call that are not bijective (encodes to the exact same bytes it was encoded from). If this field is set, it is being used when re-encoding this transaction.