Skip to content

Commit

Permalink
fix(config): remove default network config set in argument (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L authored Jun 2, 2023
1 parent 3078e7c commit 71a8348
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/cli/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node
import { Command, createOption, Option } from 'commander'
import { TaskParam, TaskArguments, initialKuai, paramTypes, KuaiArguments } from '@ckb-js/kuai-core'
import { DEFAULT_KUAI_ARGUMENTS } from '@ckb-js/kuai-core'

const KUAI_GLOBAL_PARAMS: Array<TaskParam> = [
{
Expand Down Expand Up @@ -57,7 +58,7 @@ const main = async () => {
return result
})()

const ctx = await initialKuai(args)
const ctx = await initialKuai({ ...DEFAULT_KUAI_ARGUMENTS, ...args })
const env = ctx.getRuntimeEnvironment()
Object.values(env.tasks)
.filter((task) => !task.isSubtask)
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/config/config-loading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export async function loadConfigAndTasks(args: KuaiArguments = {}): Promise<Kuai
networks: DEFAULT_NETWORKDS,
...userConfig,
kuaiArguments: {
...DEFAULT_KUAI_ARGUMENTS,
...args,
configPath,
},
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export { KuaiContext } from './context'
export * from './typescript-support'
export * from './helper'
export * from './util'
export * from './constants'
4 changes: 1 addition & 3 deletions packages/samples/mvp-dapp/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ PORT=3000

# ckb
CKB_RPC_URL=https://testnet.ckb.dev/rpc

# lumos
LUMOS_CONFIG=aggron4
NETWORK=testnet

# redis
REDIS_PORT=6379
Expand Down

0 comments on commit 71a8348

Please sign in to comment.