update wasm client

This commit is contained in:
thesimplekid
2023-08-13 13:59:26 +01:00
parent 04fe004a4b
commit ff67b070b8

View File

@@ -18,7 +18,7 @@ use crate::nuts::nut09::MintInfo;
use crate::nuts::*;
use crate::utils;
use crate::Amount;
pub use crate::Invoice;
pub use crate::Bolt11Invoice;
#[derive(Debug)]
pub enum Error {
@@ -217,7 +217,7 @@ impl Client {
}
/// Check Max expected fee [NUT-05]
pub async fn check_fees(&self, invoice: Invoice) -> Result<CheckFeesResponse, Error> {
pub async fn check_fees(&self, invoice: Bolt11Invoice) -> Result<CheckFeesResponse, Error> {
let url = self.mint_url.join("checkfees")?;
let request = CheckFeesRequest { pr: invoice };
@@ -246,7 +246,7 @@ impl Client {
pub async fn melt(
&self,
proofs: Vec<Proof>,
invoice: Invoice,
invoice: Bolt11Invoice,
outputs: Option<Vec<BlindedMessage>>,
) -> Result<MeltResponse, Error> {
let url = self.mint_url.join("melt")?;