Skip to content

Commit 7da3f3d

Browse files
committed
Try to revert this change.
1 parent 904db29 commit 7da3f3d

File tree

1 file changed

+3
-4
lines changed
  • crates/l2/contracts/bin/system_contracts_updater

1 file changed

+3
-4
lines changed

crates/l2/contracts/bin/system_contracts_updater/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use std::collections::HashMap;
2-
use std::path::Path;
1+
use std::{collections::HashMap, path::Path, path::PathBuf};
32

43
use bytes::Bytes;
54
use clap::Parser;
@@ -79,7 +78,7 @@ fn add_with_proxy(
7978
Ok(())
8079
}
8180

82-
fn update_genesis_file(l2_genesis_path: &Path) -> Result<(), SystemContractsUpdaterError> {
81+
fn update_genesis_file(l2_genesis_path: &PathBuf) -> Result<(), SystemContractsUpdaterError> {
8382
let mut genesis = read_genesis_file(l2_genesis_path.to_str().ok_or(
8483
SystemContractsUpdaterError::InvalidPath(
8584
"Failed to convert l2 genesis path to string".to_string(),
@@ -96,7 +95,7 @@ fn update_genesis_file(l2_genesis_path: &Path) -> Result<(), SystemContractsUpda
9695
l1_messenger_runtime,
9796
)?;
9897

99-
write_genesis_as_json(genesis, l2_genesis_path).map_err(std::io::Error::other)?;
98+
write_genesis_as_json(genesis, Path::new(l2_genesis_path)).map_err(std::io::Error::other)?;
10099

101100
println!("Updated L2 genesis file.");
102101

0 commit comments

Comments
 (0)