Skip to content

Commit

Permalink
Use fedimint for get_address too
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed May 9, 2024
1 parent a72c249 commit 0ed8a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mutiny-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
) -> Result<MutinyBip21RawMaterials, MutinyJsError> {
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,
Expand Down

0 comments on commit 0ed8a8d

Please sign in to comment.