list wallet directory, not loaded wallets

This commit is contained in:
conduition
2024-03-16 17:10:50 +00:00
parent 5a310f9c00
commit fd603387c4

View File

@@ -245,7 +245,7 @@ fn check_regtest_wallet() {
);
let mut wallet_info = rpc_client.get_wallet_info().unwrap_or_else(|_| {
if let Some(wallet_name) = rpc_client.list_wallets().unwrap().into_iter().next() {
if let Some(wallet_name) = rpc_client.list_wallet_dir().unwrap().into_iter().next() {
rpc_client.load_wallet(&wallet_name).unwrap();
} else {
rpc_client