Skip to content

Commit

Permalink
Problem: default cmd is wrong (#44)
Browse files Browse the repository at this point in the history
Solution:
- set default cmd to None, resolve the correct one later
  • Loading branch information
yihuang authored Feb 15, 2022
1 parent 2b5e020 commit 5a2732f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pystarport/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import fire

from .app import CHAIN, IMAGE, SUPERVISOR_CONFIG_FILE
from .app import IMAGE, SUPERVISOR_CONFIG_FILE
from .bot import BotCLI, BotClusterCLI
from .cluster import ClusterCLI, init_cluster, start_cluster, start_tail_logs_thread
from .cosmoscli import CosmosCLI
Expand Down Expand Up @@ -51,7 +51,7 @@ def serve(data, config, base_port, dotenv, cmd, quiet, no_remove=False):


class CLI:
def __init__(self, /, cmd=CHAIN):
def __init__(self, /, cmd=None):
"""
:param cmd: path to the chain binary
"""
Expand Down
2 changes: 1 addition & 1 deletion pystarport/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
self,
data,
chain_id="chainmaind",
cmd=CHAIN,
cmd=None,
zemu_address=ZEMU_HOST,
zemu_button_port=ZEMU_BUTTON_PORT,
):
Expand Down

0 comments on commit 5a2732f

Please sign in to comment.