From 74e24da5d1682f863ffc16f9b5dc480846a57479 Mon Sep 17 00:00:00 2001 From: Nikolay G Date: Fri, 12 Jan 2024 12:54:11 +0000 Subject: [PATCH] Fix parse logsoracle payload (#390) --- .../dshackle/upstream/ethereum/EthereumLocalReader.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLocalReader.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLocalReader.kt index 1612611c..e4fdde35 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLocalReader.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLocalReader.kt @@ -211,7 +211,9 @@ class EthereumLocalReader( } tpcs.map { - if (it is String) { + if (it == null) { + emptyList() + } else if (it is String) { listOf(it) } else { it as List