use of com.hederahashgraph.api.proto.java.Timestamp in project hedera-mirror-node by hashgraph.
the class AbstractTransactionHandlerTest method getDefaultTransactionRecord.
protected TransactionRecord.Builder getDefaultTransactionRecord() {
TransactionRecord.Builder builder = TransactionRecord.newBuilder();
if (isCrudTransactionHandler(transactionHandler)) {
Timestamp consensusTimestamp = transactionHandler.getType().getEntityOperation() == EntityOperation.CREATE ? CREATED_TIMESTAMP : MODIFIED_TIMESTAMP;
builder.setConsensusTimestamp(consensusTimestamp);
}
return builder.setReceipt(getTransactionReceipt(ResponseCodeEnum.SUCCESS));
}
Aggregations