fix: test

This commit is contained in:
thesimplekid
2023-06-08 00:59:39 -04:00
parent a04c336c57
commit b23f1e050e

View File

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