use of com.hedera.services.bdd.spec.HapiApiSpec.UTF8Mode.TRUE in project hedera-services by hashgraph.
the class TxnFactory method defaultBodySpec.
public Consumer<TransactionBody.Builder> defaultBodySpec() {
TransactionID defaultTxnId = defaultTransactionID();
if (r.nextDouble() < TXN_ID_SAMPLE_PROBABILITY) {
sampleTxnId.set(defaultTxnId);
}
final var memoToUse = (setup.isMemoUTF8() == TRUE) ? setup.defaultUTF8memo() : setup.defaultMemo();
return builder -> builder.setTransactionID(defaultTxnId).setMemo(memoToUse).setTransactionFee(setup.defaultFee()).setTransactionValidDuration(setup.defaultValidDuration()).setNodeAccountID(setup.defaultNode());
}
Aggregations