Skip to content
Open
Show file tree
Hide file tree
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
20 changes: 10 additions & 10 deletions docs/src/rust-client/create_deploy_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ Add this snippet to the end of your file in the `main()` function:

```rust ignore
//------------------------------------------------------------
// STEP 1: Create a basic wallet for Alice
// STEP 3: Create a basic wallet for Alice
//------------------------------------------------------------
println!("\n[STEP 1] Creating a new account for Alice");
println!("\n[STEP 3] Creating a new account for Alice");

// Account seed
let mut init_seed = [0_u8; 32];
Expand Down Expand Up @@ -193,9 +193,9 @@ Add this snippet to the end of your file in the `main()` function:

```rust ignore
//------------------------------------------------------------
// STEP 2: Deploy a fungible faucet
// STEP 4: Deploy a fungible faucet
//------------------------------------------------------------
println!("\n[STEP 2] Deploying a new fungible faucet.");
println!("\n[STEP 4] Deploying a new fungible faucet.");

// Faucet seed
let mut init_seed = [0u8; 32];
Expand Down Expand Up @@ -292,9 +292,9 @@ async fn main() -> Result<(), ClientError> {
println!("Latest block: {}", sync_summary.block_num);

//------------------------------------------------------------
// STEP 1: Create a basic wallet for Alice
// STEP 3: Create a basic wallet for Alice
//------------------------------------------------------------
println!("\n[STEP 1] Creating a new account for Alice");
println!("\n[STEP 3] Creating a new account for Alice");

// Account seed
let mut init_seed = [0_u8; 32];
Expand All @@ -321,9 +321,9 @@ async fn main() -> Result<(), ClientError> {
println!("Alice's account ID: {:?}", alice_account_id_bech32);

//------------------------------------------------------------
// STEP 2: Deploy a fungible faucet
// STEP 4: Deploy a fungible faucet
//------------------------------------------------------------
println!("\n[STEP 2] Deploying a new fungible faucet.");
println!("\n[STEP 4] Deploying a new fungible faucet.");

// Faucet seed
let mut init_seed = [0u8; 32];
Expand Down Expand Up @@ -375,10 +375,10 @@ The output will look like this:
```text
Latest block: 17771

[STEP 1] Creating a new account for Alice
[STEP 3] Creating a new account for Alice
Alice's account ID: "0x3cb3e596d14ad410000017901eaa7b"

[STEP 2] Deploying a new fungible faucet.
[STEP 4] Deploying a new fungible faucet.
Faucet account ID: "0x6ad1894ac233e4200000088311bb6b"
```

Expand Down
6 changes: 6 additions & 0 deletions docs/src/rust-client/mint_consume_create_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ loop {
}
```

If you want to verify Alice's updated balance after the consume transaction, first call
`client.sync_state().await?` and then fetch a fresh account snapshot with
`client.get_account(alice_account.id()).await?`. The original `alice_account` variable was
created earlier in the tutorial, so it does not update in place when later transactions change the
wallet state.

## Step 4: Sending tokens to other accounts

After consuming the notes, Alice has tokens in her wallet. Now, she wants to send tokens to her friends. She has two options: create a separate transaction for each transfer or batch multiple transfers into a single transaction.
Expand Down