Make generate_remote_keypair more generic for potential other remote-wallets (#8274)
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
use crate::{
|
||||
remote_keypair::RemoteKeypair,
|
||||
remote_wallet::{
|
||||
initialize_wallet_manager, DerivationPath, RemoteWallet, RemoteWalletError,
|
||||
RemoteWalletInfo, RemoteWalletType,
|
||||
},
|
||||
use crate::remote_wallet::{
|
||||
initialize_wallet_manager, DerivationPath, RemoteWallet, RemoteWalletError, RemoteWalletInfo,
|
||||
};
|
||||
use dialoguer::{theme::ColorfulTheme, Select};
|
||||
use log::*;
|
||||
@@ -369,13 +365,3 @@ pub fn get_ledger_from_info(
|
||||
};
|
||||
wallet_manager.get_ledger(&wallet_base_pubkey)
|
||||
}
|
||||
|
||||
pub fn generate_remote_keypair(
|
||||
ledger: Arc<LedgerWallet>,
|
||||
derivation_path: DerivationPath,
|
||||
) -> RemoteKeypair {
|
||||
RemoteKeypair {
|
||||
wallet_type: RemoteWalletType::Ledger(ledger),
|
||||
derivation_path,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user