mirror of
https://github.com/corda/corda.git
synced 2025-01-11 23:43:03 +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)
|
||||||
@ -381,4 +380,4 @@ class TraderDemoProtocolSeller(val myAddress: HostAndPort,
|
|||||||
return move.tx.outRef(0)
|
return move.tx.outRef(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user