use of com.hederahashgraph.api.proto.java.TokenDeleteTransactionBody in project hedera-services by hashgraph.
the class HapiTokenDelete method opBodyDef.
@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
var tId = TxnUtils.asTokenId(token, spec);
TokenDeleteTransactionBody opBody = spec.txns().<TokenDeleteTransactionBody, TokenDeleteTransactionBody.Builder>body(TokenDeleteTransactionBody.class, b -> {
b.setToken(tId);
});
return b -> b.setTokenDeletion(opBody);
}
Aggregations