pub async fn test_exex_context_with_chain_spec(
    chain_spec: Arc<ChainSpec>,
) -> Result<(ExExContext<Adapter>, TestExExHandle)>
Expand description

Creates a new [ExExContext].

This is a convenience function that does the following:

  1. Sets up an [ExExContext] with all dependencies.
  2. Inserts the genesis block of the provided (chain spec)[ChainSpec] into the storage.
  3. Creates a channel for receiving events from the Execution Extension.
  4. Creates a channel for sending notifications to the Execution Extension.

§Warning

The genesis block is not sent to the notifications channel. The caller is responsible for doing this.