Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jul 13, 2023
1 parent 739a6c7 commit ce24896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/testing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const setupNetworks = async (networkOptions: Partial<Record<string, Confi
let wasmOverriden = false

for (const [name, options] of Object.entries(networkOptions) as [string, Config | string | undefined][]) {
const config = typeof options === 'string' ? await fetchConfig(options) : options ?? (await fetchConfig(name))
const config = typeof options === 'string' ? await fetchConfig(options) : (options ?? await fetchConfig(name))
ret[name] = await setupContextWithConfig(config)
wasmOverriden ||= config['wasm-override'] != null
}
Expand Down

0 comments on commit ce24896

Please sign in to comment.