Fix faucet field for minified json

This commit is contained in:
ligi 2021-07-05 06:22:09 +02:00
parent fda43d5bb0
commit 49c41fd303
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D

View File

@ -44,7 +44,7 @@ private fun createOutputFiles() {
prettyJSONFile.writeText(chainJSONArray.toJsonString(prettyPrint = true)) prettyJSONFile.writeText(chainJSONArray.toJsonString(prettyPrint = true))
val miniJSON = JsonObject() 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 -> jsonObject[field]?.let { content ->
miniJSON[field] = content miniJSON[field] = content
} }