Skip to content

Commit

Permalink
returning json as bytes32
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Aug 2, 2024
1 parent 74fd019 commit 834335a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdp.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 834335a

Please sign in to comment.