Skip to content

Commit

Permalink
Simplify init arg (#50)
Browse files Browse the repository at this point in the history
* Change to blinding variant slip77

* Simplify init arg
  • Loading branch information
ok300 authored Mar 26, 2024
1 parent ccf0b34 commit 402a712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> ");
Expand Down
4 changes: 2 additions & 2 deletions lib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ pub struct Wallet {
}

impl Wallet {
pub fn init(mnemonic: String) -> Result<Arc<Wallet>> {
let signer = SwSigner::new(&mnemonic, false)?;
pub fn init(mnemonic: &str) -> Result<Arc<Wallet>> {
let signer = SwSigner::new(mnemonic, false)?;
let descriptor = singlesig_desc(
&signer,
Singlesig::Wpkh,
Expand Down

0 comments on commit 402a712

Please sign in to comment.