Added a wallet unit test to send to a Bech32m address

This commit is contained in:
Sandipan Dey authored and Steve Myers committed 2021-11-11 08:20:38 -08:00
1 parent 5830226216
commit 54f61d17f2
3 files changed
+17 -2

No files matched your search

+11
View File
@@ -3994,4 +3994,15 @@ pub(crate) mod test {
}
);
}
#[test]
fn test_sending_to_bip350_bech32m_address() {
let (wallet, _, _) = get_funded_wallet(get_test_wpkh());
let addr =
Address::from_str("tb1pqqqqp399et2xygdj5xreqhjjvcmzhxw4aywxecjdzew6hylgvsesf3hn0c")
.unwrap();
let mut builder = wallet.build_tx();
builder.add_recipient(addr.script_pubkey(), 45_000);
builder.finish().unwrap();
}
}