Skip to content

Commit

Permalink
Encode input data regions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjain-jump committed Nov 19, 2024
1 parent 978c0d4 commit f6bb87a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test_suite/syscall/codec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def encode_output(effects: vm_pb.SyscallEffects):
effects.stack = encode_hex_compact(effects.stack)
effects.rodata = encode_hex_compact(effects.rodata)

for i in range(len(effects.input_data_regions)):
effects.input_data_regions[i].content = encode_hex_compact(
effects.input_data_regions[i].content
)


def decode_input(input: vm_pb.SyscallContext):
instr_ctx = invoke_pb.InstrContext()
Expand Down

0 comments on commit f6bb87a

Please sign in to comment.