This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git

commit 951bd04b5e6df02bdd4ade839c0af65b7bff0fdd
Author: Antoine Toulme <[email protected]>
AuthorDate: Fri May 29 23:06:26 2020 -0700

    Fix signature of the retrieveTransactionReceipts method
---
 .../kotlin/org/apache/tuweni/eth/repository/BlockchainRepository.kt   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/eth-repository/src/main/kotlin/org/apache/tuweni/eth/repository/BlockchainRepository.kt
 
b/eth-repository/src/main/kotlin/org/apache/tuweni/eth/repository/BlockchainRepository.kt
index e688db4..aa9f1ca 100644
--- 
a/eth-repository/src/main/kotlin/org/apache/tuweni/eth/repository/BlockchainRepository.kt
+++ 
b/eth-repository/src/main/kotlin/org/apache/tuweni/eth/repository/BlockchainRepository.kt
@@ -253,8 +253,8 @@ class BlockchainRepository
    * @param blockHash the hash of the block
    * @return all transaction receipts associated with a block, in the correct 
order
    */
-  suspend fun retrieveTransactionReceipts(blockHash: Bytes): 
List<TransactionReceipt?> {
-    return blockchainIndex.findBy(TransactionReceiptFields.BLOCK_HASH, 
blockHash).map {
+  suspend fun retrieveTransactionReceipts(blockHash: Bytes): 
List<TransactionReceipt> {
+    return blockchainIndex.findBy(TransactionReceiptFields.BLOCK_HASH, 
blockHash).mapNotNull {
       transactionReceiptsStore.get(it)?.let { TransactionReceipt.fromBytes(it) 
}
     }
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to