Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Make get_contacts_sorted async
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jan 30, 2024
1 parent e77a11d commit 20e589d
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 @@ -1159,7 +1159,7 @@ impl MutinyWallet {
.set_invoice_labels(invoice, labels)?)
}

pub fn get_contacts(&self) -> Result<JsValue /* Map<String, TagItem>*/, MutinyJsError> {
pub async fn get_contacts(&self) -> Result<JsValue /* Map<String, TagItem>*/, MutinyJsError> {
Ok(JsValue::from_serde(
&self
.inner
Expand All @@ -1171,7 +1171,7 @@ impl MutinyWallet {
)?)
}

pub fn get_contacts_sorted(&self) -> Result<JsValue /* Vec<TagItem>*/, MutinyJsError> {
pub async fn get_contacts_sorted(&self) -> Result<JsValue /* Vec<TagItem>*/, MutinyJsError> {
let mut contacts: Vec<TagItem> = self
.inner
.node_manager
Expand Down

0 comments on commit 20e589d

Please sign in to comment.