Skip to content

Commit

Permalink
[WIP] test funded wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Apr 20, 2022
1 parent 236360e commit acee7c3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,21 @@ impl TxBuilder {
}

uniffi::deps::static_assertions::assert_impl_all!(Wallet: Sync, Send);

#[cfg(test)]
mod test {
use std::sync::Mutex;
use bdk::wallet::get_funded_wallet;
use crate::Wallet;

// TODO fix this after updating to bdk 0.18.0 which doesn't require a blockchain in the wallet constructor
#[test]
fn test_funded_wallet() {
let test_wpkh = "wpkh(cVpPVruEDdmutPzisEsYvtST1usBR3ntr8pXSyt6D2YYqXRyPcFW)";
let (mut funded_wallet, _, _) = get_funded_wallet(test_wpkh);
let test_wallet = Wallet {
wallet_mutex: Mutex::new(funded_wallet),
};
}

}

0 comments on commit acee7c3

Please sign in to comment.