Skip to content

Commit c192cee

Browse files
committed
fixes
1 parent 9f1b58c commit c192cee

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

bin/deriver/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ homepage.workspace = true
1212
anyhow.workspace = true
1313
tracing.workspace = true
1414
alloy-primitives = { workspace = true, features = ["serde"] }
15-
kona-derive = { path = "../../crates/derive", version = "0.0.1", features = ["online"] }
15+
kona-derive = { path = "../../crates/derive", version = "0.0.1", features = ["serde", "k256", "online"] }
1616
tokio = { version = "1.37.0", features = ["full"] }
1717
tracing-subscriber = "0.3.18"
1818
reqwest = "0.12"

crates/derive/USAGE.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
## Usage
22

3-
```rust
4-
use alloc::sync::Arc;
3+
```rust,ignore
4+
use std::sync::Arc;
55
use kona_derive::online::*;
66
use kona_derive::pipeline::*;
77
use kona_primitives::{BlockInfo, L2BlockInfo, RollupConfig};
88
9+
// TODO(refcell): replace this will a rollup config
10+
// fetched from the superchain-registry via network id.
11+
let rollup_config = Arc::new(RollupConfig::default());
12+
913
// Creates a new chain provider using the `L1_RPC_URL` environment variable.
1014
let l1_rpc_url = std::env::var("L1_RPC_URL").expect("L1_RPC_URL must be set");
1115
let chain_provider = AlloyChainProvider::new_http(l1_rpc_url.parse().unwrap());
1216
1317
// Creates a new l2 chain provider using the `L2_RPC_URL` environment variable.
1418
let l2_rpc_url = std::env::var("L2_RPC_URL").expect("L2_RPC_URL must be set");
15-
let l2_chain_provider = AlloyL2ChainProvider::new_http(l2_rpc_url.parse().unwrap());
16-
17-
// TODO(refcell): replace this will a rollup config
18-
// fetched from the superchain-registry via network id.
19-
let rollup_config = Arc::new(RollupConfig::default());
19+
let l2_chain_provider = AlloyL2ChainProvider::new_http(l2_rpc_url.parse().unwrap(), rollup_config.clone());
2020
2121
// Create the beacon client used to fetch blob data.
2222
let beacon_url = std::env::var("BEACON_URL").expect("BEACON_URL must be set");

0 commit comments

Comments
 (0)