Skip to content

Commit

Permalink
fix: only output debugInfo if it is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
krigga committed Aug 14, 2024
1 parent 845b7a6 commit 833e598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crypto/funcfiftlib/funcfiftlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ td::Result<std::string> compile_internal(char *config_json) {
result_obj("status", "ok");
result_obj("codeBoc", td::base64_encode(boc));
result_obj("fiftCode", outs.str());
result_obj("debugInfo", td::JsonRaw(debug_out.str()));
if (funC::with_debug_info) {
result_obj("debugInfo", td::JsonRaw(debug_out.str()));
}
result_obj("codeHashHex", code_cell->get_hash().to_hex());
result_obj.leave();

Expand Down

0 comments on commit 833e598

Please sign in to comment.