Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aemil145 committed Apr 7, 2022
1 parent 7becb69 commit edfb80b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ blast run scripts/myCustomScript.js -n testnet
---
## Network
You can connect to the default local node as well as a public one or you can use your own Cudos node. To do that, add a `{custom_name}: {node_url}` to `networks` field in `blast.config.js`, then call the run command with `--network` or `-n` followed by `{custom_name}`. If no network is passed, blast commands connect to the default local node.
You can connect to the default local node as well as a public one or you can use your own Cudos node. To do that, add a `{custom_name}: {node_url}` to `networks` field in `blast.config.js`, then call the `run`, `test` or `node status` command with `--network` or `-n` followed by `{custom_name}`. If no network is passed, blast commands connect to the default local node.
Here are Cudos nodes you can use to connect to Cudos network:
### Localhost
Expand Down
2 changes: 1 addition & 1 deletion packages/blast-tests/e2e-tests/tests/compile-run.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
echo -e $PASSED
fi

# executing blast run on local network through --network only if normal run is passing
# executing blast run on the local network through --network; execute only if "blast run" is passing
if [[ $exit_status != 1 ]]; then
echo -n 'blast run -n [network]...'
# Add localhost to [networks] in the config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else
echo -e $PASSED
fi

# executing node status on local network through --network only if test normal status is passing
# executing node status on local network through --network; execute only if "blast node status" is passing
if [[ $exit_status != 1 ]]; then
echo -n 'blast node status -n [network]...'
# Add localhost to [networks] in the config
Expand All @@ -56,7 +56,7 @@ if [[ $exit_status != 1 ]]; then
fi
fi

# make sure the local network is considered through --network by failing the status on invalid url
# make sure the local network is considered through --network by failing the "blast node status" on invalid url
if [[ $exit_status != 1 ]]; then
echo -n 'blast node status -n [invalid_network]...'
# Add invalid localhost to [networks] in the config
Expand Down
2 changes: 1 addition & 1 deletion packages/blast-tests/e2e-tests/tests/test.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
echo -e $PASSED
fi

# executing blast test on local network through --network only if tests are passing
# executing blast test on local network through --network; execute only if "blast test" is passing
if [[ $exit_status != 1 ]]; then
echo -n 'blast test -n [network]...'
# Add localhost to [networks] in the config
Expand Down
4 changes: 2 additions & 2 deletions packages/blast-utilities/get-node-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ async function checkNodeOnline(network) {
}
}

async function checkNodeOffline() {
const nodeStatus = await getNodeStatus()
async function checkNodeOffline(network) {
const nodeStatus = await getNodeStatus(network)
if (nodeStatus.isConnected) {
throw new BlastError('A node is already running.')
}
Expand Down

0 comments on commit edfb80b

Please sign in to comment.