mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-16 02:25:26 +01:00
fix: into mint proof for check_spendable
This commit is contained in:
@@ -18,7 +18,6 @@ use cashu::nuts::MintInfo;
|
||||
use cashu::nuts::*;
|
||||
use cashu::{Amount, Bolt11Invoice};
|
||||
use serde_json::Value;
|
||||
use tracing::debug;
|
||||
use url::Url;
|
||||
|
||||
use super::join_url;
|
||||
|
||||
@@ -76,8 +76,12 @@ impl<C: Client> Wallet<C> {
|
||||
.partition(|(_, &b)| b);
|
||||
|
||||
Ok(ProofsStatus {
|
||||
spendable: spendable.into_iter().map(|(s, _)| s).cloned().collect(),
|
||||
spent: spent.into_iter().map(|(s, _)| s).cloned().collect(),
|
||||
spendable: spendable
|
||||
.into_iter()
|
||||
.map(|(s, _)| s.into())
|
||||
.cloned()
|
||||
.collect(),
|
||||
spent: spent.into_iter().map(|(s, _)| s.into()).cloned().collect(),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -177,8 +181,6 @@ impl<C: Client> Wallet<C> {
|
||||
/// Create Split Payload
|
||||
/// TODO: This needs to sort to avoid finer printing
|
||||
fn create_split(&self, amount: Option<Amount>, proofs: Proofs) -> Result<SplitPayload, Error> {
|
||||
let proofs = proofs;
|
||||
|
||||
// Since split is used to get the needed combination of tokens for a specific
|
||||
// amount first blinded messages are created for the amount
|
||||
|
||||
|
||||
Reference in New Issue
Block a user