Unshadow name extraFields

This commit is contained in:
ligi 2021-12-29 22:19:53 +01:00
parent bbc896d285
commit 5e113833a5
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D

View File

@ -220,9 +220,9 @@ fun checkChain(chainFile: File, connectRPC: Boolean) {
throw ParentMustHaveChainAndType()
}
val extraFields = it.keys - setOf("chain", "type", "bridges")
if (extraFields.isNotEmpty()) {
throw ParentHasExtraFields(extraFields)
val extraParentFields = it.keys - setOf("chain", "type", "bridges")
if (extraParentFields.isNotEmpty()) {
throw ParentHasExtraFields(extraParentFields)
}
val bridges = it["bridges"]