mirror of
https://github.com/corda/corda.git
synced 2025-06-21 08:40:03 +00:00
Changes the name of the addTimeWindow method to setTimeWindow.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user