Skip to content

Commit

Permalink
fix: use PathBuf as cache path type
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxushuai committed Dec 12, 2023
1 parent c355e6a commit 4da2101
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion host/tests/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ fn block_cli_ethereum(#[files("testdata/ethereum/*.json.gz")] path: PathBuf) {
fn empty_blocks(#[files("testdata/ethereum/*.json.gz")] path: PathBuf) {
let block_no = u64::from_str(file_prefix(&path)).unwrap();
// Set block cache directory
let rpc_cache = Some(format!("testdata/ethereum/{}.json.gz", block_no));
let rpc_cache = Some(PathBuf::from(format!(
"testdata/ethereum/{}.json.gz",
block_no
)));
// Fetch all of the preflight data
let init =
EthereumStrategy::run_preflight(ETH_MAINNET_CHAIN_SPEC.clone(), rpc_cache, None, block_no)
Expand Down

0 comments on commit 4da2101

Please sign in to comment.