Skip to content

Commit

Permalink
Copy public input file to output folder #160
Browse files Browse the repository at this point in the history
  • Loading branch information
ETatuzova authored and nkaskov committed Jul 17, 2023
1 parent e33def6 commit fbae550
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/transpiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,7 @@ int main(int argc, char *argv[]) {
std::cerr << "Invalid command line argument - public input file does not exist" << std::endl;
return 1;
}

std::ofstream pfile;
pfile.open(output_folder_path+"/public_input.json");
pfile << nil::blueprint::convert_numeric_public_input_to_json<BlueprintFieldType>(public_input);
pfile.close();
boost::filesystem::copy(public_input, output_folder_path+"/public_input.json", boost::filesystem::copy_options::overwrite_existing);
}

value_marshalling_type marshalled_data;
Expand Down

0 comments on commit fbae550

Please sign in to comment.