diff --git a/client/jackson/src/main/kotlin/net/corda/client/jackson/JacksonSupport.kt b/client/jackson/src/main/kotlin/net/corda/client/jackson/JacksonSupport.kt index 856091aa3b..c229b78e63 100644 --- a/client/jackson/src/main/kotlin/net/corda/client/jackson/JacksonSupport.kt +++ b/client/jackson/src/main/kotlin/net/corda/client/jackson/JacksonSupport.kt @@ -72,7 +72,8 @@ object JacksonSupport { override val isFullParties: Boolean = false) : PartyObjectMapper, ObjectMapper(factory) { override fun wellKnownPartyFromX500Name(name: CordaX500Name): Party? = rpc.wellKnownPartyFromX500Name(name) override fun partyFromKey(owningKey: PublicKey): Party? = rpc.partyFromKey(owningKey) - override fun partiesFromName(query: String) = rpc.partiesFromName(query, fuzzyIdentityMatch) + // Second parameter is exactMatch, so we have to invert the meaning here. + override fun partiesFromName(query: String) = rpc.partiesFromName(query, !fuzzyIdentityMatch) override fun nodeInfoFromParty(party: AbstractParty): NodeInfo? = rpc.nodeInfoFromParty(party) } diff --git a/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt b/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt index b7b76ef401..7fb3af428a 100644 --- a/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt +++ b/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt @@ -36,7 +36,7 @@ class InteractiveShellTest { constructor(party: Party) : this(party.name.toString()) constructor(b: Int?, amount: Amount) : this("${(b ?: 0) + amount.quantity} ${amount.token}") constructor(b: Array) : this(b.joinToString("+")) - constructor(amounts: Array>) : this(amounts.map(Amount::toString).joinToString("++")) + constructor(amounts: Array>) : this(amounts.joinToString("++", transform = Amount::toString)) override val progressTracker = ProgressTracker() override fun call() = a