From 149b123809d299ac5d95b97cd3bf89f001db1016 Mon Sep 17 00:00:00 2001 From: Roy Sheinfeld <31890660+kingonly@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:00:52 +0200 Subject: [PATCH] Update getting_started.rs --- snippets/rust/src/getting_started.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/rust/src/getting_started.rs b/snippets/rust/src/getting_started.rs index fefe940a..e32b0df7 100644 --- a/snippets/rust/src/getting_started.rs +++ b/snippets/rust/src/getting_started.rs @@ -29,10 +29,10 @@ async fn getting_started() -> Result> { async fn getting_started_node_info(sdk: Arc) -> Result<()> { // ANCHOR: fetch-balance - let wallet_info = sdk.get_info().await?; - let balance_sat = wallet_info.balance_sat; - let pending_send_sat = wallet_info.pending_send_sat; - let pending_receive_sat = wallet_info.pending_receive_sat; + let info = sdk.get_info().await?; + let balance_sat = info.balance_sat; + let pending_send_sat = info.pending_send_sat; + let pending_receive_sat = info.pending_receive_sat; // ANCHOR_END: fetch-balance Ok(())