use of com.hederahashgraph.api.proto.java.ScheduleDeleteTransactionBody in project hedera-services by hashgraph.
the class HapiScheduleDelete method opBodyDef.
@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
var sId = TxnUtils.asScheduleId(schedule, spec);
ScheduleDeleteTransactionBody opBody = spec.txns().<ScheduleDeleteTransactionBody, ScheduleDeleteTransactionBody.Builder>body(ScheduleDeleteTransactionBody.class, b -> {
b.setScheduleID(sId);
});
return b -> b.setScheduleDelete(opBody);
}
Aggregations