Skip to content

Commit

Permalink
Fixed compile errors caused by changes to Corda API
Browse files Browse the repository at this point in the history
  • Loading branch information
Clintonio committed Jul 12, 2017
1 parent 1581c4e commit 8f9f9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/com/template/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.google.common.net.HostAndPort
import net.corda.client.rpc.CordaRPCClient
import net.corda.core.transactions.SignedTransaction
import net.corda.core.utilities.loggerFor
import net.corda.core.utilities.parseNetworkHostAndPort
import org.slf4j.Logger
import rx.Observable

Expand All @@ -22,7 +23,7 @@ private class TemplateClient {

fun main(args: Array<String>) {
require(args.size == 1) { "Usage: TemplateClient <node address>" }
val nodeAddress = HostAndPort.fromString(args[0])
val nodeAddress = args[0].parseNetworkHostAndPort()
val client = CordaRPCClient(nodeAddress)

// Can be amended in the com.template.MainKt file.
Expand Down

0 comments on commit 8f9f9ac

Please sign in to comment.