Skip to content

Commit f6bb87a

Browse files
committed
Encode input data regions
1 parent 978c0d4 commit f6bb87a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test_suite/syscall/codec_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ def encode_output(effects: vm_pb.SyscallEffects):
2525
effects.stack = encode_hex_compact(effects.stack)
2626
effects.rodata = encode_hex_compact(effects.rodata)
2727

28+
for i in range(len(effects.input_data_regions)):
29+
effects.input_data_regions[i].content = encode_hex_compact(
30+
effects.input_data_regions[i].content
31+
)
32+
2833

2934
def decode_input(input: vm_pb.SyscallContext):
3035
instr_ctx = invoke_pb.InstrContext()

0 commit comments

Comments
 (0)