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