Skip to content

Commit

Permalink
Fix wallet create (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Jan 3, 2024
1 parent cc891dc commit c1fa74f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/subcommand/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,17 @@ pub(crate) fn get_change_address(client: &Client, chain: Chain) -> Result<Addres
}

pub(crate) fn initialize(wallet: String, options: &Options, seed: [u8; 64]) -> Result {
let client = check_version(options.bitcoin_rpc_client(None)?)?;
check_version(options.bitcoin_rpc_client(None)?)?.create_wallet(
&wallet,
None,
Some(true),
None,
None,
)?;

let network = options.chain().network();
let client = options.bitcoin_rpc_client(Some(wallet))?;

client.create_wallet(&wallet, None, Some(true), None, None)?;
let network = options.chain().network();

let secp = Secp256k1::new();

Expand Down

0 comments on commit c1fa74f

Please sign in to comment.