You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val outputStates = stx.tx.outputs.map { it.data::class.java.name }.toList()
"There must be an IOU transaction." using (outputStates.contains(IOUState::class.java.name))
In the case of full settlement, the transaction must not contain an IOUState in output, therefore the code above produces an error.
The check should be removed as in corda-training-solutions, or modified such that the check is made only when in a partial settlement.
BTW I don't have much expertise on Corda so not sure but, I doubt that that check is really required here, because we have already similar checks in IOUContract.
The text was updated successfully, but these errors were encountered:
sbir3japan-admin
pushed a commit
to sbir3japan/corda-dev-traning-sbir3japan
that referenced
this issue
Dec 17, 2020
corda-training-template/kotlin-source/src/main/kotlin/net/corda/training/flow/IOUSettleFlow.kt
Lines 49 to 52 in 9adee32
In the case of full settlement, the transaction must not contain an IOUState in output, therefore the code above produces an error.
The check should be removed as in
corda-training-solutions
, or modified such that the check is made only when in a partial settlement.BTW I don't have much expertise on Corda so not sure but, I doubt that that check is really required here, because we have already similar checks in
IOUContract
.The text was updated successfully, but these errors were encountered: