fix: remove `ScheduleCreateTransaction.[expirationTime|waitForExpiry]`
@@ -46,11 +46,6 @@ public final class ScheduleCreateTransaction extends Transaction<ScheduleCreateT
private Key adminKey = null;
private String scheduleMemo = "";
- @Nullable
- private Instant expirationTime;
-
- private boolean waitForExpiry;
-
/**
* Constructor.
*/
@@ -70,30 +65,6 @@ public final class ScheduleCreateTransaction extends Transaction<ScheduleCreateT
initFromTransactionBody();
}
- /**
- * Extract the payer account id.
- *
- * @return the account id
- */
- @Nullable
- public Instant getExpirationTime() {
- return expirationTime;
- }
-
- public ScheduleCreateTransaction setExpirationTime(Instant expirationTime) {
- this.expirationTime = expirationTime;
- return this;
- }
-
- public boolean isWaitForExpiry() {
- return waitForExpiry;
- }
-
- public ScheduleCreateTransaction setWaitForExpiry(boolean waitForExpiry) {
- this.waitForExpiry = waitForExpiry;
- return this;
- }
-
@Nullable
public AccountId getPayerAccountId() {
return payerAccountId;
@@ -200,10 +171,7 @@ public final class ScheduleCreateTransaction extends Transaction<ScheduleCreateT
if (adminKey != null) {
builder.setAdminKey(adminKey.toProtobufKey());
}
- if (expirationTime != null) {
- builder.setExpirationTime(InstantConverter.toProtobuf(expirationTime));
- }
- builder.setMemo(scheduleMemo).setWaitForExpiry(waitForExpiry);
+ builder.setMemo(scheduleMemo);
return builder;
}
