Skip to content

Commit

Permalink
Merge pull request #3427 from LXIF/patch-5
Browse files Browse the repository at this point in the history
Update intercanister.mdx with correct command line calls
  • Loading branch information
jessiemongeon1 authored Sep 4, 2024
2 parents 2e65972 + ce7e498 commit 1dcbe17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/developer-docs/backend/rust/intercanister.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ dfx deploy
First, let's subscribe to a topic. For example, to subscribe to the "Apples" topic, use the command:

```bash
dfx canister call subscriber init '("Apples")'
dfx canister call subscriber setup_subscribe '(principal "<INSERT_PUBLISHER_PRINCIPAL_HERE>", "Apples")'
```

Then, to publish a record to the "Apples" topic, use the command:
Expand All @@ -166,11 +166,11 @@ dfx canister call publisher publish '(record { "topic" = "Apples"; "value" = 2 }
Then, you can query and receive the subscription record value with the command:

```bash
dfx canister call subscriber getCount
dfx canister call subscriber get_count
```

The output should resemble the following:

```bash
(2 : nat)
(2 : nat64)
```

0 comments on commit 1dcbe17

Please sign in to comment.