]> Untitled Git - bdk-cli/commitdiff
Fix wasm
authorrajarshimaitra <rajarshi149@gmail.com>
Sun, 20 Nov 2022 13:35:47 +0000 (19:05 +0530)
committerrajarshimaitra <rajarshi149@gmail.com>
Mon, 21 Nov 2022 10:52:39 +0000 (16:22 +0530)
src/commands.rs
src/wasm.rs

index 66b07f0865cf623eeadd097b250922e13d80f675..a89e63660a3a2c40ab3402b2100eb81c5fc0b7aa 100644 (file)
@@ -179,7 +179,7 @@ pub enum WalletSubCommand {
 }
 
 /// Config options wallet operations can take.
-#[derive(Debug, Args, Clone, PartialEq)]
+#[derive(Debug, Parser, Clone, PartialEq)]
 pub struct WalletOpts {
     /// Selects the wallet to use.
     #[clap(name = "WALLET_NAME", short = 'w', long = "wallet")]
index 0a9e7ad5daf9b5d80ce49873def49cf1b529dd38..5e69ffc892e670496b68b6c0895151915b7c1b84 100644 (file)
@@ -9,6 +9,7 @@ use bitcoin::*;
 use bdk::blockchain::AnyBlockchain;
 use bdk::database::AnyDatabase;
 use bdk::miniscript::{MiniscriptKey, Translator};
+use clap::Parser;
 use js_sys::Promise;
 use regex::Regex;
 use std::collections::HashMap;
@@ -17,7 +18,6 @@ use std::ops::Deref;
 use std::path::PathBuf;
 use std::rc::Rc;
 use std::str::FromStr;
-use structopt::StructOpt;
 use wasm_bindgen::prelude::*;
 use wasm_bindgen_futures::future_to_promise;