We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d9131 commit 1f3ac16Copy full SHA for 1f3ac16
1 file changed
src/web.rs
@@ -110,6 +110,20 @@ pub mod bitcoin {
110
})
111
}
112
113
+ #[wasm_bindgen]
114
+ pub fn upgrade_wallet(password: String, encrypted_descriptors: String) -> Promise {
115
+ set_panic_hook();
116
+
117
+ future_to_promise(async move {
118
+ match crate::bitcoin::upgrade_wallet(&password, &encrypted_descriptors) {
119
+ Ok(result) => Ok(JsValue::from_string(
120
+ serde_json::to_string(&result).unwrap(),
121
+ )),
122
+ Err(err) => Err(JsValue::from_string(err.to_string())),
123
+ }
124
+ })
125
126
127
#[wasm_bindgen]
128
pub fn get_mnemonic_seed(encryption_password: String, seed_password: String) -> Promise {
129
set_panic_hook();
0 commit comments