CORDA-696: Fix incorrect merge conflict resolution, fix filename typo

This commit is contained in:
Andrius Dagys 2018-02-26 18:43:25 +00:00
parent 9814ea6f34
commit 59a6ced423

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()
}
}