Skip to content
Open
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
15 changes: 15 additions & 0 deletions docs/src/rust-client/mint_consume_create_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,21 @@ println!(
"All of Alice's notes consumed successfully. TX: {:?}",
tx_id
);

// `alice_account` was created before the consume transaction. Retrieve Alice
// again from the client before reading state changed by that transaction.
let updated_alice_account = client
.get_account(alice_account.id())
.await?
.expect("Alice's account should be tracked by the client");
let updated_balance = updated_alice_account
.vault()
.get_balance(AssetId::new_fungible(faucet_account.id()))?;
assert_eq!(
updated_balance.as_u64(),
500,
"Alice should hold the five consumed 100-unit notes"
);
```

## Step 4: Sending tokens to other accounts
Expand Down