瀏覽代碼

fix: test

thesimplekid 1 年之前
父節點
當前提交
b23f1e050e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      integration_test/src/main.rs

+ 3 - 3
integration_test/src/main.rs

@@ -81,7 +81,7 @@ async fn test_mint(wallet: &CashuWallet) -> Proofs {
     thread::sleep(Duration::from_secs(30));
 
     wallet
-        .mint_token(Amount::from_sat(MINTAMOUNT), &mint_req.hash)
+        .mint(Amount::from_sat(MINTAMOUNT), &mint_req.hash)
         .await
         .unwrap()
 
@@ -120,7 +120,7 @@ async fn test_check_spendable(client: &Client, token: &str) -> Proofs {
 
     let token_data = Token::from_str(token).unwrap();
     let spendable = wallet
-        .check_proofs_spent(token_data.token[0].clone().proofs)
+        .check_proofs_spent(&token_data.token[0].clone().proofs)
         .await
         .unwrap();
 
@@ -158,7 +158,7 @@ async fn test_melt(wallet: &CashuWallet, invoice: Invoice, proofs: Proofs) {
     println!("{:?}", res);
 }
 
-async fn test_get_mint_info(mint: &Client) {
+async fn test_get_mint_info(_mint: &Client) {
     // let mint_info = mint.get_info().await.unwrap();
 
     // println!("{:?}", mint_info);