mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
Correct outInputState -> ourInputState (#1435)
This commit is contained in:
parent
e27e18a9ec
commit
8d261faac0
@ -109,10 +109,10 @@ class ForeignExchangeFlow(val tradeId: String,
|
|||||||
} else throw IllegalArgumentException("Our identity must be one of the parties in the trade.")
|
} else throw IllegalArgumentException("Our identity must be one of the parties in the trade.")
|
||||||
|
|
||||||
// Call the helper method to identify suitable inputs and make the outputs
|
// Call the helper method to identify suitable inputs and make the outputs
|
||||||
val (outInputStates, ourOutputStates) = prepareOurInputsAndOutputs(serviceHub, runId.uuid, localRequest)
|
val (ourInputStates, ourOutputStates) = prepareOurInputsAndOutputs(serviceHub, runId.uuid, localRequest)
|
||||||
|
|
||||||
// identify the notary for our states
|
// identify the notary for our states
|
||||||
val notary = outInputStates.first().state.notary
|
val notary = ourInputStates.first().state.notary
|
||||||
// ensure request to other side is for a consistent notary
|
// ensure request to other side is for a consistent notary
|
||||||
val remoteRequestWithNotary = remoteRequest.copy(notary = notary)
|
val remoteRequestWithNotary = remoteRequest.copy(notary = notary)
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ class ForeignExchangeFlow(val tradeId: String,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// having collated the data create the full transaction.
|
// having collated the data create the full transaction.
|
||||||
val signedTransaction = buildTradeProposal(outInputStates, ourOutputStates, theirInputStates, theirOutputStates)
|
val signedTransaction = buildTradeProposal(ourInputStates, ourOutputStates, theirInputStates, theirOutputStates)
|
||||||
|
|
||||||
// pass transaction details to the counterparty to revalidate and confirm with a signature
|
// pass transaction details to the counterparty to revalidate and confirm with a signature
|
||||||
// Allow otherParty to access our data to resolve the transaction.
|
// Allow otherParty to access our data to resolve the transaction.
|
||||||
|
Loading…
Reference in New Issue
Block a user