use of com.hedera.hashgraph.sdk.ScheduleDeleteTransaction in project hedera-mirror-node by hashgraph.
the class ScheduleDeleteTransactionSupplierTest method createWithMinimumData.
@Test
void createWithMinimumData() {
ScheduleDeleteTransactionSupplier scheduleDeleteTransactionSupplier = new ScheduleDeleteTransactionSupplier();
scheduleDeleteTransactionSupplier.setScheduleId(SCHEDULE_ID.toString());
ScheduleDeleteTransaction actual = scheduleDeleteTransactionSupplier.get();
assertThat(actual).returns(MAX_TRANSACTION_FEE_HBAR, ScheduleDeleteTransaction::getMaxTransactionFee).returns(SCHEDULE_ID, ScheduleDeleteTransaction::getScheduleId);
}
use of com.hedera.hashgraph.sdk.ScheduleDeleteTransaction in project hedera-mirror-node by hashgraph.
the class ScheduleClient method deleteSchedule.
public NetworkTransactionResponse deleteSchedule(ScheduleId scheduleId) {
log.debug("Delete schedule {}", scheduleId);
ScheduleDeleteTransaction scheduleDeleteTransaction = new ScheduleDeleteTransaction().setMaxTransactionFee(sdkClient.getMaxTransactionFee()).setScheduleId(scheduleId).setTransactionMemo(getMemo("Delete schedule"));
NetworkTransactionResponse networkTransactionResponse = executeTransactionAndRetrieveReceipt(scheduleDeleteTransaction);
log.debug("Deleted schedule {}", scheduleId);
return networkTransactionResponse;
}
use of com.hedera.hashgraph.sdk.ScheduleDeleteTransaction in project hedera-mirror-node by hashgraph.
the class ScheduleDeleteTransactionSupplierTest method createWithCustomData.
@Test
void createWithCustomData() {
ScheduleDeleteTransactionSupplier scheduleDeleteTransactionSupplier = new ScheduleDeleteTransactionSupplier();
scheduleDeleteTransactionSupplier.setMaxTransactionFee(1);
scheduleDeleteTransactionSupplier.setScheduleId(SCHEDULE_ID.toString());
ScheduleDeleteTransaction actual = scheduleDeleteTransactionSupplier.get();
assertThat(actual).returns(ONE_TINYBAR, ScheduleDeleteTransaction::getMaxTransactionFee).returns(SCHEDULE_ID, ScheduleDeleteTransaction::getScheduleId);
}
Aggregations