File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/l2/contracts/bin/system_contracts_updater Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
use std:: collections:: HashMap ;
2
- use std:: path:: Path ;
2
+ use std:: path:: { Path , PathBuf } ;
3
3
4
4
use bytes:: Bytes ;
5
5
use clap:: Parser ;
@@ -79,7 +79,7 @@ fn add_with_proxy(
79
79
Ok ( ( ) )
80
80
}
81
81
82
- fn update_genesis_file ( l2_genesis_path : & Path ) -> Result < ( ) , SystemContractsUpdaterError > {
82
+ fn update_genesis_file ( l2_genesis_path : & PathBuf ) -> Result < ( ) , SystemContractsUpdaterError > {
83
83
let mut genesis = read_genesis_file ( l2_genesis_path. to_str ( ) . ok_or (
84
84
SystemContractsUpdaterError :: InvalidPath (
85
85
"Failed to convert l2 genesis path to string" . to_string ( ) ,
@@ -96,7 +96,7 @@ fn update_genesis_file(l2_genesis_path: &Path) -> Result<(), SystemContractsUpda
96
96
l1_messenger_runtime,
97
97
) ?;
98
98
99
- write_genesis_as_json ( genesis, l2_genesis_path) . map_err ( std:: io:: Error :: other) ?;
99
+ write_genesis_as_json ( genesis, Path :: new ( l2_genesis_path) ) . map_err ( std:: io:: Error :: other) ?;
100
100
101
101
println ! ( "Updated L2 genesis file." ) ;
102
102
You can’t perform that action at this time.
0 commit comments