]> Untitled Git - bdk/commitdiff
Fix new test to use new get_address() fn
authorSteve Myers <steve@notmandatory.org>
Mon, 22 Mar 2021 17:26:56 +0000 (10:26 -0700)
committerSteve Myers <steve@notmandatory.org>
Mon, 22 Mar 2021 17:26:56 +0000 (10:26 -0700)
src/wallet/mod.rs

index 7594033bc6f27bab156ee02dcd142ea32e6f8065..c0079259d8995520fef0eb5841ae364b6e796194 100644 (file)
@@ -3426,7 +3426,7 @@ mod test {
     #[test]
     fn test_sign_single_xprv_with_master_fingerprint_and_path() {
         let (wallet, _, _) = get_funded_wallet("wpkh([d34db33f/84h/1h/0h]tprv8ZgxMBicQKsPd3EupYiPRhaMooHKUHJxNsTfYuScep13go8QFfHdtkG9nRkFGb7busX4isf6X9dURGCoKgitaApQ6MupRhZMcELAxTBRJgS/*)");
-        let addr = wallet.get_new_address().unwrap();
+        let addr = wallet.get_address(New).unwrap();
         let mut builder = wallet.build_tx();
         builder
             .set_single_recipient(addr.script_pubkey())