use of com.hederahashgraph.api.proto.java.ScheduleSignTransactionBody in project hedera-services by hashgraph.
the class HapiScheduleSign method opBodyDef.
@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
ScheduleSignTransactionBody opBody = spec.txns().<ScheduleSignTransactionBody, ScheduleSignTransactionBody.Builder>body(ScheduleSignTransactionBody.class, b -> {
ScheduleID id;
try {
id = asScheduleId(schedule, spec);
b.setScheduleID(id);
} catch (RegistryNotFound e) {
if (!ignoreMissing) {
throw e;
}
}
});
return b -> b.setScheduleSign(opBody);
}
Aggregations