Skip to content

Commit fbae550

Browse files
ETatuzovankaskov
authored andcommitted
Copy public input file to output folder #160
1 parent e33def6 commit fbae550

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/transpiler/src/main.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,7 @@ int main(int argc, char *argv[]) {
331331
std::cerr << "Invalid command line argument - public input file does not exist" << std::endl;
332332
return 1;
333333
}
334-
335-
std::ofstream pfile;
336-
pfile.open(output_folder_path+"/public_input.json");
337-
pfile << nil::blueprint::convert_numeric_public_input_to_json<BlueprintFieldType>(public_input);
338-
pfile.close();
334+
boost::filesystem::copy(public_input, output_folder_path+"/public_input.json", boost::filesystem::copy_options::overwrite_existing);
339335
}
340336

341337
value_marshalling_type marshalled_data;

0 commit comments

Comments
 (0)