Browse Source

update wasm client

thesimplekid 1 year ago
parent
commit
ff67b070b8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/wasm_client.rs

+ 3 - 3
src/wasm_client.rs

@@ -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")?;