Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Docs: update-no cyc burned #530

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
14 changes: 9 additions & 5 deletions modules/developers-guide/pages/tutorials/simple-cycles.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ To start the network locally:
[arabic]
. Open a new terminal window or tab on your local computer.
. Navigate to the root directory for your project, if necessary.
. Start the {IC} network on your local computer by running the following command:
. Start the {IC} network on your local computer by running the following command in a second terminal, in the root directory of your project:
+
[source,bash]
----
dfx start --clean --background
dfx start
----
+
After the local {IC} network completes its startup operations, you can continue to the next step.
After the local {IC} network completes its startup operations, return to your first terminal and continue to the next step.

== Register, build, and deploy the application

Expand Down Expand Up @@ -171,6 +171,10 @@ You haven't sent any cycles to the canister, so the command displays the followi
----
dfx canister call rwlgt-iiaaa-aaaaa-aaaaa-cai wallet_send '(record { canister = principal "rrkah-fqaaa-aaaaa-aaaaq-cai"; amount = (256000000000:nat64); } )'
----
This command might return something similar to the following:
+
`+(variant { 17_724 })+`

. Call the `+wallet_balance+` function to see that the `cycles_hello` canister has the number of cycles you transferred, if you specified an amount under the allowed capacity, or the `capacity` you specified when you ran the `dfx deploy` command.
+
[source,bash]
Expand All @@ -197,14 +201,14 @@ For example, the command might display a record with an `+amount+` field (repres
(record { 3_573_748_184 = 97_738_624_621_042 })
....
+
For this simple tutorial, cycles are only consumed from the balance in the default wallet canister, not from the `+cycles_hello+` canister.
For this simple tutorial, no cycles are only consumed from the balance in the default wallet canister when running in a local environment.
. Call the `+greet+` function by running a command similar to the following:
+
[source,bash]
----
dfx canister call cycles_hello greet '("from DFINITY")'
----
. Rerun the call to the `+wallet_balance+` function to see the number of cycles deducted from your default wallet:
. Rerun the call to the `+wallet_balance+` function to see the number of cycles in your default wallet. In a local environment, no cycles are consumed, but if you were to deploy the project to the network, you would see that cycles have been deducted from the default cycles wallet.
+
[source,bash]
----
Expand Down