diff --git a/tests/utils/helpers.rs b/tests/utils/helpers.rs index fc1eb44..1c8ba84 100644 --- a/tests/utils/helpers.rs +++ b/tests/utils/helpers.rs @@ -499,8 +499,8 @@ fn _get_wallet( println!("wallet dir: {wallet_dir:?}"); let xpub_account = match wallet_account { - WalletAccount::Private(ref xpriv_account) => &xpriv_account.to_xpub_account(), - WalletAccount::Public(ref xpub_account) => xpub_account, + WalletAccount::Private(ref xpriv_account) => xpriv_account.to_xpub_account(), + WalletAccount::Public(ref xpub_account) => xpub_account.clone(), }; const OPRET_KEYCHAINS: [Keychain; 3] = [ Keychain::INNER,