|
@@ -365,6 +365,7 @@ impl Wallet {
|
|
pub async fn check_all_pending_proofs(
|
|
pub async fn check_all_pending_proofs(
|
|
&self,
|
|
&self,
|
|
mint_url: Option<UncheckedUrl>,
|
|
mint_url: Option<UncheckedUrl>,
|
|
|
|
+ unit: Option<CurrencyUnit>,
|
|
) -> Result<Amount, Error> {
|
|
) -> Result<Amount, Error> {
|
|
let mints = match mint_url {
|
|
let mints = match mint_url {
|
|
Some(mint_url) => HashMap::from_iter(vec![(mint_url, None)]),
|
|
Some(mint_url) => HashMap::from_iter(vec![(mint_url, None)]),
|
|
@@ -378,7 +379,7 @@ impl Wallet {
|
|
.localstore
|
|
.localstore
|
|
.get_proofs(
|
|
.get_proofs(
|
|
Some(mint.clone()),
|
|
Some(mint.clone()),
|
|
- None,
|
|
|
|
|
|
+ unit.clone(),
|
|
Some(vec![State::Pending, State::Reserved]),
|
|
Some(vec![State::Pending, State::Reserved]),
|
|
None,
|
|
None,
|
|
)
|
|
)
|