Skip to content

Commit

Permalink
Add pj_endpoint method to PjUri types.
Browse files Browse the repository at this point in the history
`pj_endpoint` is used as the `Sender` id for persistent storage.
  • Loading branch information
DanGould committed Dec 9, 2024
1 parent b2dc431 commit 36582f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ impl PjUri {
pub fn amount_sats(&self) -> Option<u64> {
self.0.clone().amount.map(|e| e.to_sat())
}

pub fn pj_endpoint(&self) -> String {
self.0.extras.endpoint().to_string()
}

pub fn as_string(&self) -> String {
self.0.clone().to_string()
}
Expand Down

0 comments on commit 36582f8

Please sign in to comment.