mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
CORDA-696: Fix incorrect merge conflict resolution, fix filename typo
This commit is contained in:
parent
9814ea6f34
commit
59a6ced423
@ -23,10 +23,10 @@ data class ServicesForResolutionImpl(
|
|||||||
|
|
||||||
@Throws(TransactionResolutionException::class)
|
@Throws(TransactionResolutionException::class)
|
||||||
override fun loadStates(stateRefs: Set<StateRef>): Set<StateAndRef<ContractState>> {
|
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 stx = validatedTransactions.getTransaction(it.key) ?: throw TransactionResolutionException(it.key)
|
||||||
val baseTx = stx.resolveBaseTransaction(this)
|
val baseTx = stx.resolveBaseTransaction(this)
|
||||||
it.value.map { StateAndRef(baseTx.outputs[it.index], it) }
|
it.value.map { StateAndRef(baseTx.outputs[it.index], it) }
|
||||||
}.flatMap { it }.toSet()
|
}.toSet()
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user