Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 23, 2024
1 parent e1ebcca commit b7fbb1e
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 127 deletions.
6 changes: 3 additions & 3 deletions webln-js/src/request_invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl From<RequestInvoiceResponse> for JsRequestInvoiceResponse {

#[wasm_bindgen(js_class = RequestInvoiceResponse)]
impl JsRequestInvoiceResponse {
#[wasm_bindgen(getter)]
pub fn invoice(&self) -> String {
self.inner.invoice.clone()
#[wasm_bindgen(getter, js_name = paymentRequest)]
pub fn payment_request(&self) -> String {
self.inner.payment_request.clone()
}
}
Loading

0 comments on commit b7fbb1e

Please sign in to comment.