Skip to content

Commit

Permalink
Update wallet_esplora and wallet_esplora_async to...
Browse files Browse the repository at this point in the history
...rust-bitcoin 0.30.0
  • Loading branch information
danielabrozzoni committed Aug 3, 2023
1 parent 6eb0795 commit 6c29e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion example-crates/wallet_esplora/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
std::process::exit(0);
}

let faucet_address = Address::from_str("mkHS9ne12qx9pS9VojpwU5xtRd4T7X7ZUt")?;
let faucet_address = Address::from_str("mkHS9ne12qx9pS9VojpwU5xtRd4T7X7ZUt")?
.require_network(Network::Testnet)?;

let mut tx_builder = wallet.build_tx();
tx_builder
Expand Down
3 changes: 2 additions & 1 deletion example-crates/wallet_esplora_async/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
std::process::exit(0);
}

let faucet_address = Address::from_str("mkHS9ne12qx9pS9VojpwU5xtRd4T7X7ZUt")?;
let faucet_address = Address::from_str("mkHS9ne12qx9pS9VojpwU5xtRd4T7X7ZUt")?
.require_network(Network::Testnet)?;

let mut tx_builder = wallet.build_tx();
tx_builder
Expand Down

0 comments on commit 6c29e53

Please sign in to comment.