CORDA-696: Fix conflict resolution error, fix filename type

This commit is contained in:
Andrius Dagys
2018-02-26 18:50:46 +00:00
parent 3c8db47b5a
commit 0adc203d7a

View File

@ -23,10 +23,10 @@ data class ServicesForResolutionImpl(
@Throws(TransactionResolutionException::class)
override fun loadStates(stateRefs: Set<StateRef>): Set<StateAndRef<ContractState>> {
return stateRefs.groupBy { it.txhash }.map {
return stateRefs.groupBy { it.txhash }.flatMap {
val stx = validatedTransactions.getTransaction(it.key) ?: throw TransactionResolutionException(it.key)
val baseTx = stx.resolveBaseTransaction(this)
it.value.map { StateAndRef(baseTx.outputs[it.index], it) }
}.flatMap { it }.toSet()
}.toSet()
}
}
}