From a5e853e6125ad9629b312d0042428a4af4b2feb2 Mon Sep 17 00:00:00 2001 From: Jessie Mongeon Date: Fri, 13 Sep 2024 13:05:21 -0500 Subject: [PATCH] Make network flag consistent --- docs/concepts/subnet-types.mdx | 4 ++-- .../multi-chain/bitcoin/using-btc/read-state.mdx | 6 +++--- docs/developer-docs/smart-contracts/maintain/delete.mdx | 2 +- docs/tutorials/developer-journey/level-1/1.3-first-dapp.mdx | 2 +- .../developer-journey/level-2/2.5-unit-testing.mdx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/concepts/subnet-types.mdx b/docs/concepts/subnet-types.mdx index b6a4dcbf29..426e6cc60d 100644 --- a/docs/concepts/subnet-types.mdx +++ b/docs/concepts/subnet-types.mdx @@ -81,7 +81,7 @@ Save this principal ID to be used as the `CONTROLLER` value in a future step. You can check the current balance for that principal by running the command: ``` -dfx ledger --network=ic balance +dfx ledger --network ic balance ``` To top up your principal's balance, you can send cycles to the principal using the [NNS dapp](https://nns.ic0.app/wallet/), or [learn how to convert ICP tokens into cycles](/docs/current/tutorials/developer-journey/level-1/1.4-using-cycles#converting-icp-tokens-to-cycles). @@ -123,7 +123,7 @@ Then, whenever you create new canisters using that `WALLET_CANISTER_ID`, the new You can check the wallet balance of the wallet canister with the command: ``` -dfx wallet --network=ic balance +dfx wallet --network ic balance ``` The current wallet settings are stored in your local file system in the file `$HOME/.config/dfx/identity//wallets.json`. The file's contents will resemble the following: diff --git a/docs/developer-docs/multi-chain/bitcoin/using-btc/read-state.mdx b/docs/developer-docs/multi-chain/bitcoin/using-btc/read-state.mdx index 9743c6b3ed..9672ce5683 100644 --- a/docs/developer-docs/multi-chain/bitcoin/using-btc/read-state.mdx +++ b/docs/developer-docs/multi-chain/bitcoin/using-btc/read-state.mdx @@ -91,7 +91,7 @@ pub async fn get_utxos(network: BitcoinNetwork, address: String) -> GetUtxosResp Then make a call to this canister's function with the command: ``` -dfx canister --network=ic call CANISTER_NAME get_utxos '("ADDRESS")' +dfx canister --network ic call CANISTER_NAME get_utxos '("ADDRESS")' ``` Replace `CANISTER_NAME` with your canister's name and replace `ADDRESS` with your Bitcoin address. [Learn more about Bitcoin addresses.](https://en.bitcoin.it/wiki/Transaction#Pay-to-PubkeyHash) @@ -153,7 +153,7 @@ pub async fn get_balance(network: BitcoinNetwork, address: String) -> u64 { Then make a call to this canister's function with the command: ``` -dfx canister --network=ic call CANISTER_NAME get_balance '("ADDRESS")' +dfx canister --network ic call CANISTER_NAME get_balance '("ADDRESS")' ``` Replace `CANISTER_NAME` with your canister's name and replace `ADDRESS` with your Bitcoin address. [Learn more about Bitcoin addresses.](https://en.bitcoin.it/wiki/Transaction#Pay-to-PubkeyHash) @@ -215,7 +215,7 @@ pub async fn get_current_fee_percentiles(network: BitcoinNetwork) -> Veccanister // Delete local canister -dfx canister delete --network=ic // Delete canister on mainnet +dfx canister delete --network ic // Delete canister on mainnet ``` Deleting a canister removes the canister identifier, code, and state. Before you can delete a canister, however, you must first stop the canister to clear any pending message requests or replies. diff --git a/docs/tutorials/developer-journey/level-1/1.3-first-dapp.mdx b/docs/tutorials/developer-journey/level-1/1.3-first-dapp.mdx index a6d706d7db..cb595800d4 100644 --- a/docs/tutorials/developer-journey/level-1/1.3-first-dapp.mdx +++ b/docs/tutorials/developer-journey/level-1/1.3-first-dapp.mdx @@ -890,7 +890,7 @@ You will need to configure the project to use certain `npm` packages. These pack "prebuild": "dfx generate", "start": "webpack serve --mode development --env development", "deploy:local": "dfx deploy --network=local", - "deploy:ic": "dfx deploy --network=ic", + "deploy:ic": "dfx deploy --network ic", "generate": "dfx generate poll_backend" }, "dependencies": { diff --git a/docs/tutorials/developer-journey/level-2/2.5-unit-testing.mdx b/docs/tutorials/developer-journey/level-2/2.5-unit-testing.mdx index 895b4c07b8..d91caaed19 100644 --- a/docs/tutorials/developer-journey/level-2/2.5-unit-testing.mdx +++ b/docs/tutorials/developer-journey/level-2/2.5-unit-testing.mdx @@ -218,7 +218,7 @@ Then, open your `package.json` file and insert `"test": "vitest"` in the `script "prebuild": "dfx generate", "start": "webpack serve --mode development --env development", "deploy:local": "dfx deploy --network=local", - "deploy:ic": "dfx deploy --network=ic", + "deploy:ic": "dfx deploy --network ic", "generate": "dfx generate e2e_tests_backend", "test": "vitest" },