use of com.hederahashgraph.api.proto.java.FileDeleteTransactionBody in project hedera-services by hashgraph.
the class HapiFileDelete method opBodyDef.
@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
file = fileSupplier.isPresent() ? fileSupplier.get().get() : file;
var fid = TxnUtils.asFileId(file, spec);
FileDeleteTransactionBody opBody = spec.txns().<FileDeleteTransactionBody, FileDeleteTransactionBody.Builder>body(FileDeleteTransactionBody.class, builder -> {
builder.setFileID(fid);
});
return builder -> builder.setFileDelete(opBody);
}
Aggregations