Skip to content

Commit 616aa82

Browse files
committed
Merge #602: wrong Network path fixed
b4100a7 wrong Network path fixed (Pedro Felix) Pull request description: <!-- You can erase any parts of this template not applicable to your Pull Request. --> ### Description This change needs to be made for this example to compile correctly. <!-- Describe the purpose of this PR, what's being adding and/or fixed --> ### Notes to the reviewers <!-- In this section you can include notes directed to the reviewers, like explaining why some parts of the PR were done in a specific way --> ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [ ] I've added tests for the new feature * [ ] I've added docs for the new feature * [ ] I've updated `CHANGELOG.md` #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [ ] I'm linking the issue being fixed by this PR ACKs for top commit: notmandatory: ACK b4100a7 Tree-SHA512: b4b7d186cabc7b3ed2d5b6411414d56eeee09c4e8d9d704a26f8817d6573b6b182d7ef1ff8139b6f4f6fb3e4ec99c2c09758804a6bb25051e45b0885c0def5e3
2 parents cfb67fc + b4100a7 commit 616aa82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ use bdk::Wallet;
4343
use bdk::database::MemoryDatabase;
4444
use bdk::blockchain::ElectrumBlockchain;
4545
use bdk::SyncOptions;
46-
4746
use bdk::electrum_client::Client;
47+
use bdk::bitcoin::Network;
4848
4949
fn main() -> Result<(), bdk::Error> {
5050
let blockchain = ElectrumBlockchain::from(Client::new("ssl://electrum.blockstream.info:60002")?);
5151
let wallet = Wallet::new(
5252
"wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)",
5353
Some("wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/1/*)"),
54-
bitcoin::Network::Testnet,
54+
Network::Testnet,
5555
MemoryDatabase::default(),
5656
)?;
5757

0 commit comments

Comments
 (0)