From 49c41fd3032dcf81ff484a2c1d3af75a58975386 Mon Sep 17 00:00:00 2001 From: ligi Date: Mon, 5 Jul 2021 06:22:09 +0200 Subject: [PATCH] Fix faucet field for minified json --- src/main/kotlin/org/ethereum/lists/chains/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/ethereum/lists/chains/Main.kt b/src/main/kotlin/org/ethereum/lists/chains/Main.kt index 374cb2b6..9ff191ce 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -44,7 +44,7 @@ private fun createOutputFiles() { prettyJSONFile.writeText(chainJSONArray.toJsonString(prettyPrint = true)) val miniJSON = JsonObject() - listOf("name", "chainId", "shortName", "networkId", "nativeCurrency", "rpc", "faucet", "infoURL").forEach { field -> + listOf("name", "chainId", "shortName", "networkId", "nativeCurrency", "rpc", "faucets", "infoURL").forEach { field -> jsonObject[field]?.let { content -> miniJSON[field] = content }