From 366860b2d88b57074a05a77d013cdf8981560fe0 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Wed, 30 Mar 2016 14:56:27 +0100 Subject: [PATCH] Minor: Fix typo ('amounnt' to 'amount') --- src/main/kotlin/protocols/TwoPartyTradeProtocol.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/protocols/TwoPartyTradeProtocol.kt b/src/main/kotlin/protocols/TwoPartyTradeProtocol.kt index b05e488840..1c79bd7862 100644 --- a/src/main/kotlin/protocols/TwoPartyTradeProtocol.kt +++ b/src/main/kotlin/protocols/TwoPartyTradeProtocol.kt @@ -148,7 +148,7 @@ object TwoPartyTradeProtocol { serviceHub.verifyTransaction(wtx.toLedgerTransaction(serviceHub.identityService, serviceHub.storageService.attachments)) if (wtx.outputs.sumCashBy(myKeyPair.public) != price) - throw IllegalArgumentException("Transaction is not sending us the right amounnt of cash") + throw IllegalArgumentException("Transaction is not sending us the right amount of cash") // There are all sorts of funny games a malicious secondary might play here, we should fix them: //