Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ ark select chain stargaze # reads juno.env file
echo $WALLET_MINTER # test correct wallet is shown as defined in env file
```

### NOTE:
if using Mac OS X version after Catalina (re: Zsh replaced Bash as macOS's default terminal shell in macOS Catalina)
switch to bash before setting up/sourcing CLI.
```
/bin/bash
```


## Create a collection

```sh
Expand Down
10 changes: 8 additions & 2 deletions cli/ark-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ source "$ARK_CLI_DIR"/chain-query-height.sh
source "$ARK_CLI_DIR"/nft-query-snapshot.sh
source "$ARK_CLI_DIR"/wasm_tx_store.sh

ARCH="$(uname -m)"

function ark() {
ARGS=$@ # backup args

Expand Down Expand Up @@ -165,7 +167,11 @@ function ark() {
fi
;;
select)
CHAIN=${1,,} # lowercase
if [[ ARCH="arm64" ]]; then
CHAIN=${1:l} # lowercase
else
CHAIN=${1,,} # lowercase
fi
ARK_ENV_FILE="$ARK_ENV_DIR/"${CHAIN}.env
echo "reading $ARK_ENV_FILE" >&2
source "$ARK_ENV_FILE"
Expand Down Expand Up @@ -351,4 +357,4 @@ fi

echo "- max calls (like tx queries) until succcesful response set to: MAX_CALL_LIMIT=$MAX_CALL_LIMIT"

export -f ark
export -f ark