mirror of
https://github.com/corda/corda.git
synced 2024-12-26 16:11:12 +00:00
Merged fix for TwoPartyTradeFlow not finding the seller identity
This commit is contained in:
parent
3297be4a07
commit
35ef7d19da
@ -202,8 +202,8 @@ object TwoPartyTradeFlow {
|
||||
|
||||
// Register the identity we're about to send payment to. This shouldn't be the same as the asset owner
|
||||
// identity, so that anonymity is enforced.
|
||||
val wellKnownPayToIdentity = serviceHub.identityService.verifyAndRegisterIdentity(it.payToIdentity)
|
||||
require(wellKnownPayToIdentity?.party == sellerSession.counterparty) { "Well known identity to pay to must match counterparty identity" }
|
||||
val wellKnownPayToIdentity = serviceHub.identityService.verifyAndRegisterIdentity(it.payToIdentity) ?: it.payToIdentity
|
||||
require(wellKnownPayToIdentity.party == sellerSession.counterparty) { "Well known identity to pay to must match counterparty identity" }
|
||||
|
||||
if (it.price > acceptablePrice)
|
||||
throw UnacceptablePriceException(it.price)
|
||||
|
Loading…
Reference in New Issue
Block a user