Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
teogeb committed Dec 8, 2023
1 parent 892e04e commit e88eaca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/client/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,25 +445,25 @@ export const createStrictConfig = (input: StreamrClientConfig = {}): StrictStrea
}

const applyEnvironmentDefaults = (environmentId: EnvironmentId, data: StreamrClientConfig): StreamrClientConfig => {
const defauls = CHAIN_CONFIG[environmentId]
const defaults = CHAIN_CONFIG[environmentId]
const config = merge(data, {
network: {
...data.network,
controlLayer: {
entryPoints: defauls.entryPoints,
entryPoints: defaults.entryPoints,
...data.network?.controlLayer,
}
} as any,
contracts: {
streamRegistryChainAddress: defauls.contracts.StreamRegistry,
streamStorageRegistryChainAddress: defauls.contracts.StreamStorageRegistry,
storageNodeRegistryChainAddress: defauls.contracts.StorageNodeRegistry,
streamRegistryChainAddress: defaults.contracts.StreamRegistry,
streamStorageRegistryChainAddress: defaults.contracts.StreamStorageRegistry,
storageNodeRegistryChainAddress: defaults.contracts.StorageNodeRegistry,
streamRegistryChainRPCs: {
name: defauls.name,
chainId: defauls.id,
rpcs: defauls.rpcEndpoints
name: defaults.name,
chainId: defaults.id,
rpcs: defaults.rpcEndpoints
},
theGraphUrl: defauls.theGraphUrl,
theGraphUrl: defaults.theGraphUrl,
...data.contracts,
} as any
}) as any
Expand Down

0 comments on commit e88eaca

Please sign in to comment.