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