use of com.hederahashgraph.api.proto.java.ConsensusDeleteTopicTransactionBody in project hedera-services by hashgraph.
the class HapiTopicDelete method opBodyDef.
@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
TopicID id = resolveTopicId(spec);
ConsensusDeleteTopicTransactionBody opBody = spec.txns().<ConsensusDeleteTopicTransactionBody, ConsensusDeleteTopicTransactionBody.Builder>body(ConsensusDeleteTopicTransactionBody.class, b -> {
b.setTopicID(id);
});
return b -> b.setConsensusDeleteTopic(opBody);
}
Aggregations