From 4b74d94001ed5233e9017ef8bafaa2fe5b2482f4 Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Fri, 9 Sep 2016 11:34:14 +0100 Subject: [PATCH] node: Fix compile after rebase, small typo fix --- .../r3corda/node/services/monitor/WalletMonitorService.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node/src/main/kotlin/com/r3corda/node/services/monitor/WalletMonitorService.kt b/node/src/main/kotlin/com/r3corda/node/services/monitor/WalletMonitorService.kt index f4b30ad9c1..b339b8bd27 100644 --- a/node/src/main/kotlin/com/r3corda/node/services/monitor/WalletMonitorService.kt +++ b/node/src/main/kotlin/com/r3corda/node/services/monitor/WalletMonitorService.kt @@ -14,7 +14,6 @@ import com.r3corda.core.serialization.serialize import com.r3corda.core.transactions.LedgerTransaction import com.r3corda.core.transactions.TransactionBuilder import com.r3corda.core.utilities.loggerFor -import com.r3corda.node.log import com.r3corda.node.services.api.AbstractNodeService import com.r3corda.node.services.api.ServiceHubInternal import com.r3corda.node.services.statemachine.StateMachineManager @@ -95,7 +94,7 @@ class WalletMonitorService(services: ServiceHubInternal, val smm: StateMachineMa try { when (req) { is ClientToServiceCommand.IssueCash -> issueCash(req) - is ClientToServiceCommand.PayCash -> initatePayment(req) + is ClientToServiceCommand.PayCash -> initiatePayment(req) is ClientToServiceCommand.ExitCash -> exitCash(req) else -> throw IllegalArgumentException("Unknown request type ${req.javaClass.name}") } @@ -153,7 +152,7 @@ class WalletMonitorService(services: ServiceHubInternal, val smm: StateMachineMa } // TODO: Make a lightweight protocol that manages this workflow, rather than embedding it directly in the service - private fun initatePayment(req: ClientToServiceCommand.PayCash): TransactionBuildResult { + private fun initiatePayment(req: ClientToServiceCommand.PayCash): TransactionBuildResult { val builder: TransactionBuilder = TransactionType.General.Builder(null) // TODO: Have some way of restricting this to states the caller controls try {