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§
sourcefn push_polkadot_extrinsic(
&mut self,
ext: UncheckedExtrinsic,
) -> Result<(), Error>
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.