Skip to content

Commit

Permalink
Merge pull request #1175 from MutinyWallet/fedimint-onchain-fixes
Browse files Browse the repository at this point in the history
Use fedimint for create_address too
  • Loading branch information
TonyGiorgio authored May 9, 2024
2 parents a72c249 + 0ed8a8d commit 4ea794a
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 4ea794a

Please sign in to comment.