Skip to content

fix: clarinet sbtc docs #969

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

Merged
merged 4 commits into from
Feb 26, 2025
Merged
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
7 changes: 3 additions & 4 deletions content/docs/stacks/clarinet/guides/working-with-sbtc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To use sBTC in your contract, you need to add the `sbtc-deposit` smart contract
In a Clarinet project, run the following command:

```terminal
clarinet requirements add SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-deposit
$ clarinet requirements add SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-deposit
```

This will add the [`sbtc-deposit`](https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-deposit)
Expand All @@ -37,7 +37,7 @@ As a SIP-010 token, sBTC let you call the `transfer` function to transfer tokens
Let's say we have an NFT contract that allows users to buy mint an NFT using sBTC.


```clarinet
```clarity
;; this code is for demo purposes
;; it doesn't implement SIP-009 NFT standard
(define-non-fungible-token nft-name uint)
Expand Down Expand Up @@ -75,8 +75,7 @@ sure that your contracts call the right address.

On testnet, the official Hiro sBTC contract is
[ST1F7QA2MDF17S807EPA36TSS8AMEFY4KA9TVGWXT.sbtc-token](https://explorer.hiro.so/txid/ST1F7QA2MDF17S807EPA36TSS8AMEFY4KA9TVGWXT.sbtc-token?chain=testnet).
This is is contract that is linked to the sBTC faucet (coming soon).
{/* TODO: add link and instructions to use the faucet once ready */}
This is the contract that is linked to the sBTC faucet (coming soon).

Again, Clarinet will make sure that your contracts call this address when being deployed on mainnet.
You can see the of the sbtc-contract being re-mapped in the testnet deployment plan.
Expand Down