Skip to main content

Function: assertUniqueDomains()

function assertUniqueDomains(chains): void;

Defined in: packages/overcast-core/src/chain-env.ts:264

Throws when two of chains share a settlement domain.

The check readChains can only make on the domains an operator stated; run this once a layer's defaults have filled in the rest (evmConfig()'s chain id, a domain read from the chain), with every chain's resolved domain.

Parameters​

ParameterType
chainsreadonly object[]

Returns​

void

Throws​

ConfigError naming each colliding pair.