From 599f61fe7c49e2804d22ee8cd07db0d74478969a Mon Sep 17 00:00:00 2001 From: Termina1 Date: Tue, 3 Oct 2023 05:38:14 +0300 Subject: [PATCH] fix optimism testnet --- .../dshackle/upstream/ethereum/EthereumUpstreamValidator.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt index d3cadf458..c4feea0be 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumUpstreamValidator.kt @@ -156,7 +156,8 @@ open class EthereumUpstreamValidator @JvmOverloads constructor( netVersion(), ) .map { - val isChainValid = chain.chainId == it.t1 && chain.netVersion.toString() == it.t2 + val isChainValid = chain.chainId.lowercase() == it.t1.lowercase() && + chain.netVersion.toString() == it.t2 if (!isChainValid) { val actualChain = Global.chainByChainId(it.t1).chainName