mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Do not shadow chainId
This commit is contained in:
parent
93991ff0c5
commit
ba442eaadb
|
@ -446,9 +446,9 @@ fun checkChain(chainFile: File, connectRPC: Boolean, verbose: Boolean = false) {
|
|||
} catch (e: Exception) {
|
||||
|
||||
}
|
||||
chainId?.let { chainId ->
|
||||
if (chainIdAsLong != chainId.toLong()) {
|
||||
error("RPC chainId (${chainId.toLong()}) does not match chainId from json ($chainIdAsLong)")
|
||||
chainId?.let { nonNullChainId ->
|
||||
if (chainIdAsLong != nonNullChainId.toLong()) {
|
||||
error("RPC chainId (${nonNullChainId.toLong()}) does not match chainId from json ($chainIdAsLong)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user