Skip to content

Commit aa4c5fa

Browse files
committed
updates
1 parent 87df3d7 commit aa4c5fa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

integration_test/src/main.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern crate log;
1919
use bitcoincore_rpc::core_rpc_json as bitcoincore_rpc_json;
2020

2121
use std::collections::HashMap;
22+
use std::str::FromStr;
2223

2324
use bitcoincore_rpc::json;
2425
use bitcoincore_rpc::jsonrpc::error::Error as JsonRpcError;
@@ -201,13 +202,12 @@ fn main() {
201202
//TODO load_wallet(&self, wallet: &str) -> Result<json::LoadWalletResult> {
202203
//TODO unload_wallet(&self, wallet: Option<&str>) -> Result<()> {
203204
//TODO backup_wallet(&self, destination: Option<&str>) -> Result<()> {
204-
test_stop(cl);
205205

206206
let rpc_url = format!("{}/wallet/testdescriptorwallet", get_rpc_url());
207207
let desc_cl = Client::new(&rpc_url, get_auth()).unwrap();
208208

209209
test_descriptor_wallet(&desc_cl);
210-
test_stop(desc_cl);
210+
test_stop(cl);
211211
}
212212

213213
fn test_get_network_info(cl: &Client) {
@@ -1074,8 +1074,10 @@ fn test_descriptor_wallet(cl: &Client) {
10741074
.unwrap();
10751075

10761076
cl.import_descriptors(
1077-
"tr(tprv8ZgxMBicQKsPeRBCAfUGsZhyHy9dwWyPqhSJmaMnMJQWWtt8L2SkTeHaiF82CUCGtiTiHAs3cMkjdKckGKiCWeYtvMPF1jDTWYTryRMicpx/86h/1h/0h/0/*)#0t9kzwrk",
1078-
"tr(tprv8ZgxMBicQKsPeRBCAfUGsZhyHy9dwWyPqhSJmaMnMJQWWtt8L2SkTeHaiF82CUCGtiTiHAs3cMkjdKckGKiCWeYtvMPF1jDTWYTryRMicpx/86h/1h/0h/1/*)#7lqhlmnw",
1077+
"wpkh(tprv8ZgxMBicQKsPeRBCAfUGsZhyHy9dwWyPqhSJmaMnMJQWWtt8L2SkTeHaiF82CUCGtiTiHAs3cMkjdKckGKiCWeYtvMPF1jDTWYTryRMicpx/86h/1h/0h/0/*)#ymr4jlz6",
1078+
"wpkh(tprv8ZgxMBicQKsPeRBCAfUGsZhyHy9dwWyPqhSJmaMnMJQWWtt8L2SkTeHaiF82CUCGtiTiHAs3cMkjdKckGKiCWeYtvMPF1jDTWYTryRMicpx/86h/1h/0h/1/*)#40x502jz",
10791079
).unwrap();
1080-
cl.get_new_address(None, Some(json::AddressType::Bech32m)).unwrap();
1080+
1081+
let add = cl.get_new_address(None, Some(json::AddressType::Bech32)).unwrap();
1082+
assert_eq!(add, Address::from_str("bcrt1q7crcza94drr00skmu5x0n00rhmwnthde2frhwk").unwrap());
10811083
}

0 commit comments

Comments
 (0)