Skip to content

Commit

Permalink
Merge pull request #2273 from vincent-dfinity/patch-4
Browse files Browse the repository at this point in the history
Update deploying-your-first-bitcoin-dapp.md to use the right network types
  • Loading branch information
jessiemongeon1 authored Dec 11, 2023
2 parents f75a11b + 4b08afe commit 5e14d95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/samples/deploying-your-first-bitcoin-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ Deploying to the Internet Computer requires [cycles](../developer-docs/setup/cyc
### Deploy the smart contract to the Internet Computer

```bash
dfx deploy --network=ic basic_bitcoin --argument '(variant { Testnet })'
dfx deploy --network=ic basic_bitcoin --argument '(variant { testnet })'
```

#### What this does
- `dfx deploy` tells the command line interface to `deploy` the smart contract
- `--network=ic` tells the command line to deploy the smart contract to the mainnet ICP blockchain
- `--argument '(variant { Testnet })'` passes the argument `Testnet` to initialize the smart contract, telling it to connect to the Bitcoin testnet
- `--argument '(variant { testnet })'` passes the argument `testnet` to initialize the smart contract, telling it to connect to the Bitcoin testnet

:::info
You're initializing the canister with `variant { Testnet }`, so that the canister connects to the the [Bitcoin testnet](https://en.bitcoin.it/wiki/Testnet). To be specific, this connects to `Testnet3`, which is the current Bitcoin test network used by the Bitcoin community.
You're initializing the canister with `variant { testnet }`, so that the canister connects to the the [Bitcoin testnet](https://en.bitcoin.it/wiki/Testnet). To be specific, this connects to `Testnet3`, which is the current Bitcoin test network used by the Bitcoin community.

To connect to the **Bitcoin mainnet**, one should use `variant { Mainnet }`
To connect to the **Bitcoin mainnet**, one should use `variant { mainnet }`
:::


Expand Down

0 comments on commit 5e14d95

Please sign in to comment.