mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Replaced varargs with a list
This commit is contained in:
parent
9fb8061ba4
commit
16182331f9
@ -102,7 +102,7 @@ object AutoOfferProtocol {
|
||||
|
||||
val notary = serviceHub.networkMapCache.notaryNodes.first().identity
|
||||
// need to pick which ever party is not us
|
||||
val otherParty = notUs(*dealToBeOffered.parties).single()
|
||||
val otherParty = notUs(dealToBeOffered.parties).single()
|
||||
progressTracker.currentStep = ANNOUNCING
|
||||
send(otherParty, 0, AutoOfferMessage(serviceHub.storageService.myLegalIdentity, notary, ourSessionID, dealToBeOffered))
|
||||
progressTracker.currentStep = DEALING
|
||||
@ -110,7 +110,7 @@ object AutoOfferProtocol {
|
||||
return stx
|
||||
}
|
||||
|
||||
private fun notUs(vararg parties: Party): List<Party> {
|
||||
private fun notUs(parties: List<Party>): List<Party> {
|
||||
val notUsParties: MutableList<Party> = arrayListOf()
|
||||
for (party in parties) {
|
||||
if (serviceHub.storageService.myLegalIdentity != party) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user