From ca702b763c6be2a9964d8ff94156e2ad38c0c910 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 18 Oct 2024 08:05:20 -0300 Subject: [PATCH] fix: fix regression in --cmio-advance-state option --- src/cartesi-machine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cartesi-machine.lua b/src/cartesi-machine.lua index ad98dc9ad..e64be3a8b 100755 --- a/src/cartesi-machine.lua +++ b/src/cartesi-machine.lua @@ -2101,8 +2101,8 @@ while math.ult(machine:read_mcycle(), max_mcycle) do -- we have fed an advance state input if cmio_advance and cmio_advance.next_input_index > cmio_advance.input_index_begin then if reason == cartesi.CMIO_YIELD_AUTOMATIC_REASON_TX_OUTPUT then - local output = save_cmio_output(cmio_advance, data) - local output_hash = cartesi.keccak(output) + save_cmio_output(cmio_advance, data) + local output_hash = cartesi.keccak(data) output_hashes[#output_hashes + 1] = output_hash cmio_advance.output_index = cmio_advance.output_index + 1 elseif reason == cartesi.CMIO_YIELD_AUTOMATIC_REASON_TX_REPORT then