mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
demo: Remove warnings
This commit is contained in:
parent
5de6e3f965
commit
780f2d7e82
@ -201,8 +201,7 @@ fun runBuyer(node: Node, amount: Amount<Issued<Currency>>) {
|
||||
}
|
||||
|
||||
val future = if (node.isPreviousCheckpointsPresent) {
|
||||
val (buyer, future) = node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single()
|
||||
future
|
||||
node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single().second
|
||||
} else {
|
||||
// We use a simple scenario-specific wrapper protocol to make things happen.
|
||||
val buyer = TraderDemoProtocolBuyer(attachmentsPath, node.info.identity, amount)
|
||||
@ -381,4 +380,4 @@ class TraderDemoProtocolSeller(val myAddress: HostAndPort,
|
||||
return move.tx.outRef(0)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user