Skip to content

Commit

Permalink
Merge pull request #2311 from waldmatias/patch-1
Browse files Browse the repository at this point in the history
Update 1.1-live-demo.md
  • Loading branch information
letmejustputthishere authored Jan 2, 2024
2 parents 621ff76 + 48df156 commit bc2c100
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorials/developer-journey/level-1/1.1-live-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Without the `--background` flag, the output of the execution environment will ta
Then, to deploy this canister to the playground, run the command:

```sh
dfx deploy developer_journey_backend --playground
dfx deploy hello_world_backend --playground
```

:::info
Expand All @@ -83,7 +83,7 @@ The output of this command will resemble the following:
Deployed canisters.
URLs:
Backend canister via Candid interface:
developer_journey_backend: http://bkyz2-fmaaa-aaaaa-qaaaq-cai.icp0.io
hello_world_backend: http://bkyz2-fmaaa-aaaaa-qaaaq-cai.icp0.io
```

### Interacting with the canister via the CLI
Expand All @@ -93,10 +93,10 @@ Once deployed, the canister can be interacted with from the command line, or fro
If you recall from the [0.6: Introduction to dfx](../level-0/06-intro-dfx.md) module, our canister has a single method called `greet`, which you can call using a command such as:

```sh
dfx canister --network playground call developer_journey_backend greet '("everyone")'
dfx canister --playground call hello_world_backend greet '("everyone")'
```

This command sends a message to the `developer_journey_backend` canister that has been deployed on the playground network (indicated by the `--network playground` flag), and calls the method `greet`, then passes the text `'("everyone")'` to the method.
This command sends a message to the `hello_world_backend` canister that has been deployed on the playground network (indicated by the `--playground` flag), and calls the method `greet`, then passes the text `'("everyone")'` to the method.

As a result, the canister should return the following reply:

Expand All @@ -107,7 +107,7 @@ As a result, the canister should return the following reply:
You can change the text portion to anything you'd like to test the method further. For example, instead of 'everyone', you can pass 'developers' into the method, such as:

```sh
dfx canister --network playground call developer_journey_backend greet '("developers")'
dfx canister --playground call hello_world_backend greet '("developers")'
```

This will return the reply:
Expand Down

0 comments on commit bc2c100

Please sign in to comment.