diff --git a/cli/src/main.rs b/cli/src/main.rs index 0c6407423..8a846d81d 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -50,7 +50,7 @@ fn main() -> Result<()> { } let mnemonic = persistence.get_or_create_mnemonic()?; - let wallet = Wallet::init(mnemonic.to_string())?; + let wallet = Wallet::init(&mnemonic.to_string())?; loop { let readline = rl.readline("breez-liquid> "); diff --git a/lib/src/wallet.rs b/lib/src/wallet.rs index f0d5be4e8..95f5211d5 100644 --- a/lib/src/wallet.rs +++ b/lib/src/wallet.rs @@ -43,8 +43,8 @@ pub struct Wallet { } impl Wallet { - pub fn init(mnemonic: String) -> Result> { - let signer = SwSigner::new(&mnemonic, false)?; + pub fn init(mnemonic: &str) -> Result> { + let signer = SwSigner::new(mnemonic, false)?; let descriptor = singlesig_desc( &signer, Singlesig::Wpkh,