diff --git a/src/main/kotlin/com/r3corda/demos/protocols/AutoOfferProtocol.kt b/src/main/kotlin/com/r3corda/demos/protocols/AutoOfferProtocol.kt index 047e9a10da..11ff47d0ea 100644 --- a/src/main/kotlin/com/r3corda/demos/protocols/AutoOfferProtocol.kt +++ b/src/main/kotlin/com/r3corda/demos/protocols/AutoOfferProtocol.kt @@ -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 { + private fun notUs(parties: List): List { val notUsParties: MutableList = arrayListOf() for (party in parties) { if (serviceHub.storageService.myLegalIdentity != party) {