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

Commit 81634e0

Browse files
committed
Make get_contacts_sorted async
1 parent 25fe54f commit 81634e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mutiny-wasm/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ impl MutinyWallet {
12031203
.set_invoice_labels(invoice, labels)?)
12041204
}
12051205

1206-
pub fn get_contacts(&self) -> Result<JsValue /* Map<String, TagItem>*/, MutinyJsError> {
1206+
pub async fn get_contacts(&self) -> Result<JsValue /* Map<String, TagItem>*/, MutinyJsError> {
12071207
Ok(JsValue::from_serde(
12081208
&self
12091209
.inner
@@ -1215,7 +1215,7 @@ impl MutinyWallet {
12151215
)?)
12161216
}
12171217

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

0 commit comments

Comments
 (0)