diff --git a/src/apps/monero/protocol/signing/step_06_set_out1.py b/src/apps/monero/protocol/signing/step_06_set_out1.py index cf1a87c7f..3357089cb 100644 --- a/src/apps/monero/protocol/signing/step_06_set_out1.py +++ b/src/apps/monero/protocol/signing/step_06_set_out1.py @@ -328,7 +328,7 @@ def _is_last_in_batch(state: State, idx, bidx=None): """ Returns true if the current output is last in the rsig batch """ - bidx = _get_rsig_batch(idx) if bidx is None else bidx + bidx = _get_rsig_batch(state, idx) if bidx is None else bidx batch_size = state.rsig_grp[bidx] return (idx - sum(state.rsig_grp[:bidx])) + 1 == batch_size