use of com.hederahashgraph.api.proto.java.UncheckedSubmitBody in project hedera-services by hashgraph.
the class HapiUncheckedSubmit method opBodyDef.
@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
var subOpBytes = subOp.serializeSignedTxnFor(spec);
if (verboseLoggingOn) {
log.info("Submitting unchecked: " + CommonUtils.extractTransactionBody(Transaction.parseFrom(subOpBytes)));
}
UncheckedSubmitBody opBody = spec.txns().<UncheckedSubmitBody, UncheckedSubmitBody.Builder>body(UncheckedSubmitBody.class, b -> {
b.setTransactionBytes(ByteString.copyFrom(subOpBytes));
});
return b -> b.setUncheckedSubmit(opBody);
}
Aggregations