Fix build

This commit is contained in:
Mike Hearn
2016-11-17 16:33:06 +01:00
parent 230302c847
commit f630e15528
11 changed files with 52 additions and 50 deletions

View File

@ -56,7 +56,7 @@ class TraderDemoApi(val services: ServiceHub) {
}
// The line below blocks and waits for the future to resolve.
val stx = services.invokeProtocolAsync<SignedTransaction>(SellerProtocol::class.java, otherParty, params.amount.DOLLARS).get()
val stx = services.invokeProtocolAsync<SignedTransaction>(SellerProtocol::class.java, otherParty, params.amount.DOLLARS).resultFuture.get()
logger.info("Sale completed - we have a happy customer!\n\nFinal transaction is:\n\n${Emoji.renderIfSupported(stx.tx)}")
return Response.status(Response.Status.OK).build()
} else {