Skip to content

Commit

Permalink
remove remaining account mentioning in prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Oct 30, 2023
1 parent 76af2a6 commit ac8255e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 143 deletions.
4 changes: 2 additions & 2 deletions sdk/examples/how_tos/native_tokens/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async fn main() -> Result<()> {
);

wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");
}

let metadata =
Expand Down Expand Up @@ -88,7 +88,7 @@ async fn main() -> Result<()> {

// Ensure the account is synced after creating the native token.
wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");

Ok(())
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async fn main() -> Result<()> {
.await?;

wallet.sync(None).await?;
println!("Account synced!");
println!("Wallet synced!");

// Set the stronghold password
wallet
Expand Down
12 changes: 6 additions & 6 deletions sdk/examples/wallet/participation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async fn main() -> Result<()> {
}

let balance = wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");

////////////////////////////////////////////////
// create voting output or increase voting power
Expand All @@ -142,7 +142,7 @@ async fn main() -> Result<()> {
);

let balance = wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");
println!("New voting power: {}", balance.base_coin().voting_power());

let voting_output = wallet.get_voting_output().await?.unwrap();
Expand All @@ -167,7 +167,7 @@ async fn main() -> Result<()> {
);

let balance = wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");
println!("New voting power: {}", balance.base_coin().voting_power());

////////////////////////////////////////////////
Expand All @@ -192,7 +192,7 @@ async fn main() -> Result<()> {
);

wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");

////////////////////////////////////////////////
// get voting overview
Expand All @@ -219,7 +219,7 @@ async fn main() -> Result<()> {
);

wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");

////////////////////////////////////////////////
// destroy voting output
Expand All @@ -243,7 +243,7 @@ async fn main() -> Result<()> {
);

wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");

assert!(wallet.get_voting_output().await.is_err());

Expand Down
4 changes: 2 additions & 2 deletions sdk/examples/wallet/spammer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ async fn main() -> Result<()> {
if error_state.is_err() {
// Sync when getting an error, because that's probably when no outputs are available anymore
let mut balance = wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");

while balance.base_coin().available() == 0 {
println!("No funds available");
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
balance = wallet.sync(None).await?;
println!("Account synced");
println!("Wallet synced");
}
}

Expand Down
131 changes: 0 additions & 131 deletions sdk/examples/wallet/split_funds.rs

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/examples/wallet/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async fn sync_print_balance(wallet: &Wallet, full_report: bool) -> Result<()> {
let alias = wallet.alias().await;
let now = tokio::time::Instant::now();
let balance = wallet.sync(None).await?;
println!("{alias}'s account synced in: {:.2?}", now.elapsed());
println!("{alias}'s wallet synced in: {:.2?}", now.elapsed());
if full_report {
println!("{alias}'s balance:\n{balance:#?}");
} else {
Expand Down

0 comments on commit ac8255e

Please sign in to comment.