From 0ed8a8d86a4537f70eb866b7ea00a49c95226446 Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Wed, 8 May 2024 20:12:27 -0500 Subject: [PATCH] Use fedimint for get_address too --- mutiny-wasm/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mutiny-wasm/src/lib.rs b/mutiny-wasm/src/lib.rs index 53ae731b7..de371ae0f 100644 --- a/mutiny-wasm/src/lib.rs +++ b/mutiny-wasm/src/lib.rs @@ -484,11 +484,11 @@ impl MutinyWallet { /// /// It is recommended to create a new address for every transaction. #[wasm_bindgen] - pub fn get_new_address( + pub async fn get_new_address( &self, labels: Vec, ) -> Result { - let address = self.inner.node_manager.get_new_address(labels.clone())?; + let address = self.inner.create_address(labels.clone()).await?; Ok(MutinyBip21RawMaterials { address: address.to_string(), invoice: None,