Created
January 8, 2019 04:29
-
-
Save amolpednekar/aa2659eb893cd10640155e4311ef2c04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a connection to PartyA and PartyB. | |
val (partyAProxy, partyBProxy) = args.map { arg -> | |
val nodeAddress = parse(arg) | |
val client = CordaRPCClient(nodeAddress) | |
client.start("user1", "test").proxy | |
} | |
// Issue a State that uses OldContract onto the ledger. | |
val partyBIdentity = partyBProxy.nodeInfo().legalIdentities.first() | |
partyAProxy.startFlowDynamic(Initiator::class.java, partyBIdentity) | |
Thread.sleep(5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment