Skip to content

Commit

Permalink
fix: fix regression in --cmio-advance-state option
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Oct 18, 2024
1 parent e76a0d4 commit ca702b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cartesi-machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca702b7

Please sign in to comment.