mirror of
https://github.com/corda/corda.git
synced 2025-01-25 21:59:22 +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 future = if (node.isPreviousCheckpointsPresent) {
|
||||||
val (buyer, future) = node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single()
|
node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single().second
|
||||||
future
|
|
||||||
} else {
|
} else {
|
||||||
// We use a simple scenario-specific wrapper protocol to make things happen.
|
// We use a simple scenario-specific wrapper protocol to make things happen.
|
||||||
val buyer = TraderDemoProtocolBuyer(attachmentsPath, node.info.identity, amount)
|
val buyer = TraderDemoProtocolBuyer(attachmentsPath, node.info.identity, amount)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user