currently, it outputs 1 ProposalState when consuming but it is useless after consumed.
why don't we change it not to produce the output state?
|
"An Proposal Consume transaction should create only one output proposal state." using (tx.outputsOfType<ProposalState>().size == 1) |
This improvement affects CustomValidatingNotaryFlow.
|
val finalizedProposalState = stx.tx.outputsOfType<ProposalState>().single() |