Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make network flag consistent #3478

Merged
merged 1 commit into from
Sep 16, 2024
Merged
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
4 changes: 2 additions & 2 deletions docs/concepts/subnet-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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/<identity_name>/wallets.json`. The file's contents will resemble the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -215,7 +215,7 @@ pub async fn get_current_fee_percentiles(network: BitcoinNetwork) -> Vec<Millisa
Then make a call to this canister's function with the command:

```
dfx canister --network=ic call CANISTER_NAME get_current_fee_percentiles
dfx canister --network ic call CANISTER_NAME get_current_fee_percentiles
```

Replace `CANISTER_NAME` with your canister's name.
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/smart-contracts/maintain/delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want to permanently delete a specific <GlossaryTooltip>canister</Glossary

```
dfx canister delete <canister-name> // Delete local canister
dfx canister delete <canister-name> --network=ic // Delete canister on mainnet
dfx canister delete <canister-name> --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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Loading