Skip to content

Commit

Permalink
cashu token wasm bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed Feb 9, 2024
1 parent 3d365d9 commit bedcba6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions waila-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ impl PaymentParams {
self.params.nostr_wallet_auth().map(|u| u.to_string())
}

#[wasm_bindgen(getter)]
pub fn cashu_token(&self) -> Option<String> {
self.params.cashu_token().and_then(|t| t.serialize().ok())
}

#[wasm_bindgen(getter)]
pub fn payjoin_endpoint(&self) -> Option<String> {
self.params.payjoin_endpoint().map(|n| n.to_string())
Expand Down

0 comments on commit bedcba6

Please # to comment.