Skip to content

Commit

Permalink
update helloworld
Browse files Browse the repository at this point in the history
  • Loading branch information
hh committed Mar 21, 2024
1 parent 4e10872 commit d051140
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/tutorials/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ npx scrypt-cli compile

This command will generate a contract artifact file at `artifacts\helloworld.json`.

2. Or call the `loadArtifact()` function in the code:
2. Then call the `loadArtifact()` function in the code:


```ts
Expand All @@ -88,7 +88,15 @@ The `watch` option in the provided command appears to facilitate continuous moni

## Contract Deployment & Call

Before we deploy the contract, follow [the instruction](../../how-to-deploy-and-call-a-contract/faucet) to fund a Bitcoin key.
Before we deploy the contract, you need to generate a Bitcoin key.

```bash
npm run genprivkey
```

then follow [the instruction](../../how-to-deploy-and-call-a-contract/faucet) to fund the key.

Next, start deploying and calling the contract:

1. To [deploy a smart contract](../how-to-deploy-and-call-a-contract/how-to-deploy-and-call-a-contract.md#contract-deployment), simply call its `deploy` method.

Expand Down

0 comments on commit d051140

Please sign in to comment.