Skip to content

Commit

Permalink
Remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Aug 3, 2023
1 parent 9955a23 commit 8b160e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mutiny-wasm/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,12 +857,11 @@ impl NwcProfile {
self.nwc_uri.clone()
}

#[wasm_bindgen(getter)]
#[wasm_bindgen]
pub fn sharable_url(&self, url_prefix: String) -> Option<String> {
match self.spending_conditions {
SpendingConditions::SingleUse(ref single_use) => {
let encoded = urlencoding::encode(&self.nwc_uri);
// todo figure out how to change the url
Some(format!(
"{}/gift?amount={}&nwc_uri={}",
url_prefix, single_use.amount_sats, encoded
Expand Down

0 comments on commit 8b160e4

Please sign in to comment.