Skip to main content

create_block

Function create_block 

Source
pub fn create_block<T, Tx>(
    header: FoundryHeader,
    transactions: impl IntoIterator<Item = T>,
) -> Block<Tx>
Expand description

Helper function to create a new block with Header and Anvil transactions, generic over the transaction envelope with a default of [FoundryTxEnvelope].

Note: if the impersonate-tx feature is enabled this will also accept MaybeImpersonatedTransaction.