mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-30 19:15:20 +01:00
feat(bindings): check all mint quotes js bindings
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user