From 834335a9654c236d9b83b60567c164be068c23c9 Mon Sep 17 00:00:00 2001 From: Pia Date: Fri, 2 Aug 2024 09:14:23 -0400 Subject: [PATCH] returning json as bytes32 --- src/hdp.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdp.cairo b/src/hdp.cairo index a4742cd8..1fc4e8f6 100644 --- a/src/hdp.cairo +++ b/src/hdp.cairo @@ -208,7 +208,7 @@ func run{ dictionary["results_root"] = '0x' + (hex(ids.results_root.high * 2 ** 128 + ids.results_root.low)[2:].zfill(64)) results = list() for i in range(ids.results_len): - results.append(memory[ids.results.address_ + i]) + results.append('0x' + (hex(memory[ids.results.address_ + i])[2:].zfill(64))) dictionary["results"] = results with open(cairo_run_output_path, 'w') as json_file: json.dump(dictionary, json_file)