feat(bindings): check all mint quotes js bindings

This commit is contained in:
thesimplekid
2024-05-19 00:39:08 +01:00
parent 0cc5e153a8
commit 8dc4af633f

View File

@@ -138,6 +138,13 @@ impl JsWallet {
Ok(quote.into())
}
#[wasm_bindgen(js_name = checkAllMintQuotes)]
pub async fn check_all_mint_quotes(&self) -> Result<JsAmount> {
let amount = self.inner.check_all_mint_quotes().await.map_err(into_err)?;
Ok(amount.into())
}
#[wasm_bindgen(js_name = mint)]
pub async fn mint(&mut self, mint_url: String, quote_id: String) -> Result<JsAmount> {
let mint_url = UncheckedUrl::from_str(&mint_url).map_err(into_err)?;