File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
crates/sncast/src/starknet_commands/verify Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use std::ffi::OsStr;
9
9
use walkdir:: WalkDir ;
10
10
11
11
fn read_workspace_files (
12
- workspace_dir : Utf8PathBuf ,
12
+ workspace_dir : & Utf8PathBuf ,
13
13
) -> Result < serde_json:: Map < String , serde_json:: Value > > {
14
14
// Read all files name along with their contents in a JSON format
15
15
// in the workspace dir recursively
@@ -73,7 +73,7 @@ pub trait VerificationInterface {
73
73
class_hash : Option < Felt > ,
74
74
contract_name : String ,
75
75
) -> Result < VerifyResponse > {
76
- let file_data = read_workspace_files ( workspace_dir) ?;
76
+ let file_data = read_workspace_files ( & workspace_dir) ?;
77
77
let source_code = serde_json:: Value :: Object ( file_data) ;
78
78
let payload = VerificationPayload {
79
79
contract_name,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub struct Verify {
59
59
pub custom_base_api_url : Option < String > ,
60
60
}
61
61
62
- #[ derive( ValueEnum , Clone , Debug ) ]
62
+ #[ derive( ValueEnum , Clone , Copy , Debug ) ]
63
63
pub enum Verifier {
64
64
Walnut ,
65
65
Voyager ,
You can’t perform that action at this time.
0 commit comments