This commit is contained in:
Richard Green 2016-02-01 17:48:45 +00:00
parent 68e8f32462
commit cb12770b9c

View File

@ -41,6 +41,11 @@ public class JavaCommercialPaper implements Contract {
this.maturityDate = maturityDate;
}
public State copy() {
State ret = new State(this.issuance, this.owner, this.faceValue, this.maturityDate);
return ret;
}
public PartyReference getIssuance() {
return issuance;
}
@ -108,7 +113,7 @@ public class JavaCommercialPaper implements Contract {
public static class Issue extends Commands {
@Override
public boolean equals(Object obj) {
return obj instanceof Redeem;
return obj instanceof Issue;
}
}
}