From 4ff8619f7850278502fddb75e4d884ad216316c8 Mon Sep 17 00:00:00 2001 From: rajarshimaitra Date: Sun, 20 Nov 2022 19:05:47 +0530 Subject: [PATCH] Fix wasm --- src/commands.rs | 2 +- src/wasm.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 66b07f0..eb3651c 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -179,7 +179,7 @@ pub enum WalletSubCommand { } /// Config options wallet operations can take. -#[derive(Debug, Args, Clone, PartialEq)] +#[derive(Debug, Args, Clone, PartialEq, Parser)] pub struct WalletOpts { /// Selects the wallet to use. #[clap(name = "WALLET_NAME", short = 'w', long = "wallet")] diff --git a/src/wasm.rs b/src/wasm.rs index 0a9e7ad..5e69ffc 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -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;