mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Replace timestamp with time-window (#3211)
This commit is contained in:
committed by
GitHub
parent
d1e147b1c1
commit
52eef5da5b
@ -56,7 +56,7 @@ public class CommercialPaper implements Contract {
|
||||
});
|
||||
} else if (cmd.getValue() instanceof Commands.Issue) {
|
||||
State output = outputs.get(0);
|
||||
if (timeWindow == null) throw new IllegalArgumentException("Issuances must be timestamped");
|
||||
if (timeWindow == null) throw new IllegalArgumentException("Issuances must have a time-window");
|
||||
Instant time = timeWindow.getUntilTime();
|
||||
requireThat(require -> {
|
||||
// Don't allow people to issue commercial paper under other entities identities.
|
||||
|
Reference in New Issue
Block a user