diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java index 4d11766d092..4f26273112e 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/TransactionAdapter.java @@ -66,6 +66,12 @@ public TransactionAdapter(final @Nonnull TransactionWithMetadata transactionWith this.transactionWithMetadata = transactionWithMetadata; } + /** + * Constructs a new TransactionAdapter object with receipt. + * + * @param transactionWithMetadata the TransactionWithMetadata object to adapt. + * @param transactionReceiptWithMetadata the TransactionReceiptWithMetadata object to adapt. + */ public TransactionAdapter( final @Nonnull TransactionWithMetadata transactionWithMetadata, final @Nullable TransactionReceiptWithMetadata transactionReceiptWithMetadata) { @@ -73,6 +79,12 @@ public TransactionAdapter( this.transactionReceiptWithMetadata = Optional.ofNullable(transactionReceiptWithMetadata); } + /** + * Reurns the receipt of the transaction. + * + * @param environment the data fetching environment. + * @return the receipt of the transaction. + */ private Optional getReceipt( final DataFetchingEnvironment environment) { if (transactionReceiptWithMetadata == null) {