Skip to content

Commit

Permalink
docs: improve custom-evm example docs (#8703)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 9, 2024
1 parent 2216b4b commit da1536f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/custom-evm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async fn main() -> eyre::Result<()> {

let tasks = TaskManager::current();

// create optimism genesis with canyon at block 2
// create a custom chain spec
let spec = ChainSpec::builder()
.chain(Chain::mainnet())
.genesis(Genesis::default())
Expand All @@ -145,7 +145,9 @@ async fn main() -> eyre::Result<()> {

let handle = NodeBuilder::new(node_config)
.testing_node(tasks.executor())
// configure the node with regular ethereum types
.with_types::<EthereumNode>()
// use default ethereum components but with our executor
.with_components(EthereumNode::components().executor(MyExecutorBuilder::default()))
.launch()
.await
Expand Down

0 comments on commit da1536f

Please sign in to comment.