mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Unshadow name extraFields
This commit is contained in:
parent
bbc896d285
commit
5e113833a5
|
@ -220,9 +220,9 @@ fun checkChain(chainFile: File, connectRPC: Boolean) {
|
||||||
throw ParentMustHaveChainAndType()
|
throw ParentMustHaveChainAndType()
|
||||||
}
|
}
|
||||||
|
|
||||||
val extraFields = it.keys - setOf("chain", "type", "bridges")
|
val extraParentFields = it.keys - setOf("chain", "type", "bridges")
|
||||||
if (extraFields.isNotEmpty()) {
|
if (extraParentFields.isNotEmpty()) {
|
||||||
throw ParentHasExtraFields(extraFields)
|
throw ParentHasExtraFields(extraParentFields)
|
||||||
}
|
}
|
||||||
|
|
||||||
val bridges = it["bridges"]
|
val bridges = it["bridges"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user