Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
josediegorobles committed Dec 7, 2023
1 parent a8cb2ac commit 9273142
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/bitcoin/payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ pub async fn create_payjoin(
.into_iter()
.enumerate()
.find(|(_, txo)| {
invoices.iter().all(|invoice| {
txo.script_pubkey != invoice.address.script_pubkey()
})
invoices
.iter()
.all(|invoice| txo.script_pubkey != invoice.address.script_pubkey())
})
.map(|(i, _)| i);

Expand Down
7 changes: 3 additions & 4 deletions src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,8 @@ pub mod rgb {
let pre_req: IssuePreRequest = serde_wasm_bindgen::from_value(request).unwrap();
let media = match pre_req.meta {
Some(media) => {
let media = serde_wasm_bindgen::to_value(&media).expect("");
let media = resolve(import_uda_data(media)).await;
Some(IssueMediaRequest::from(media))
let media = crate::rgb::import_uda_data(media).await;
Some(IssueMediaRequest::from(media.unwrap()))
}
None => None,
};
Expand All @@ -398,7 +397,7 @@ pub mod rgb {
precision: pre_req.precision,
seal: pre_req.seal,
iface: pre_req.iface,
meta: Some(media),
meta: media,
};
match crate::rgb::issue_contract(&nostr_hex_sk, req).await {
Ok(result) => Ok(JsValue::from_string(
Expand Down

0 comments on commit 9273142

Please sign in to comment.