diff --git a/example-crates/wallet_electrum/src/main.rs b/example-crates/wallet_electrum/src/main.rs index 20ae9d0f..5145d593 100644 --- a/example-crates/wallet_electrum/src/main.rs +++ b/example-crates/wallet_electrum/src/main.rs @@ -77,8 +77,11 @@ fn main() -> Result<(), Box> { let balance = wallet.get_balance(); println!("Wallet balance after syncing: {} sats", balance.total()); - if balance.total() == 0 { - println!("Please send some coins to the receiving address"); + if balance.total() < SEND_AMOUNT { + println!( + "Please send at least {} sats to the receiving address", + SEND_AMOUNT + ); std::process::exit(0); } diff --git a/example-crates/wallet_esplora/src/main.rs b/example-crates/wallet_esplora/src/main.rs index 804139f8..d8eda32a 100644 --- a/example-crates/wallet_esplora/src/main.rs +++ b/example-crates/wallet_esplora/src/main.rs @@ -69,8 +69,11 @@ fn main() -> Result<(), Box> { let balance = wallet.get_balance(); println!("Wallet balance after syncing: {} sats", balance.total()); - if balance.total() == 0 { - println!("Please send some coins to the receiving address"); + if balance.total() < SEND_AMOUNT { + println!( + "Please send at least {} sats to the receiving address", + SEND_AMOUNT + ); std::process::exit(0); }