referrerpolicy=no-referrer-when-downgrade
polkadot_test_client

Trait 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>

Implementors§