Changes the name of the addTimeWindow method to setTimeWindow.

This commit is contained in:
Joel Dudley
2017-07-05 10:57:18 +01:00
committed by GitHub
parent 7eaac8a306
commit 65f385953f
18 changed files with 56 additions and 45 deletions

View File

@ -82,7 +82,7 @@ class SellerFlow(val otherParty: Party,
tx.addAttachment(serviceHub.attachments.openAttachment(PROSPECTUS_HASH)!!.id)
// Requesting a time-window to be set, all CP must have a validation window.
tx.addTimeWindow(Instant.now(), 30.seconds)
tx.setTimeWindow(Instant.now(), 30.seconds)
// Sign it as ourselves.
val stx = serviceHub.signInitialTransaction(tx)