Skip to content

docs: demonstrate retrieving updated account balance - #252

Open
kejan2514 wants to merge 2 commits into
0xMiden:mainfrom
kejan2514:docs/account-balance-refresh-114-clean
Open

kejan2514 wants to merge 2 commits into
0xMiden:mainfrom
kejan2514:docs/account-balance-refresh-114-clean

Conversation

@kejan2514

Copy link
Copy Markdown

Summary

Shows how to retrieve Alice's updated account state after consuming notes and assert the resulting vault balance. This makes it explicit that callers should fetch the account from the client again before inspecting transaction-updated state.

Closes #114

Copy link
Copy Markdown
Author

Added 5e328c5 to run the same refreshed-account/500-unit assertion in rust-client/src/bin/create_mint_consume_send.rs immediately after consuming the five notes. The Markdown snippet is marked ignore, so mirroring it in the executable ensures the actual API usage is compiled and the balance is checked when the tutorial runs. The original documentation change and branch history are preserved.

Validation on the PR branch: Prettier 3.8.4 passed for all Markdown; the documentation site built successfully; release/locked Rust doctests passed (18 passed, 26 ignored); release/locked cargo check for create_mint_consume_send passed; rustfmt and git diff --check passed. No live mint/consume transactions were submitted during this verification.

The historical three Actions runs on the previous head are marked failed but have zero jobs, so there is no compiler/test log identifying a source defect. Please run/approve the workflows for the updated head as appropriate. Current main has since migrated to SDK v0.17; these local Rust checks used the PR branch's locked v0.16 dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explain how client updates account data by asserting on balance

1 participant