referrerpolicy=no-referrer-when-downgrade

Trait polkadot_test_client::BlockBuilderExt

source ·
pub trait BlockBuilderExt {
    // Required method
    fn push_polkadot_extrinsic(
        &mut self,
        ext: UncheckedExtrinsic,
    ) -> Result<(), Error>;
}
Expand description

Polkadot specific extensions for the BlockBuilder.

Required Methods§

source

fn push_polkadot_extrinsic( &mut self, ext: UncheckedExtrinsic, ) -> Result<(), Error>

Push a Polkadot test runtime specific extrinsic to the block.

This will internally use the BlockBuilder::push method, but this method expects a opaque extrinsic. So, we provide this wrapper which converts a test runtime specific extrinsic to a opaque extrinsic and pushes it to the block.

Returns the result of the application of the extrinsic.

Implementations on Foreign Types§

source§

impl BlockBuilderExt for BlockBuilder<'_, Block, Client>

source§

fn push_polkadot_extrinsic( &mut self, ext: UncheckedExtrinsic, ) -> Result<(), Error>

Implementors§