Skip to content

Commit

Permalink
Fix expiration date as today + 7 days (#5076)
Browse files Browse the repository at this point in the history
  • Loading branch information
neacsu authored Nov 1, 2024
1 parent b73561f commit f9b3636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/credential-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::Arc;
use time::{Date, OffsetDateTime};
use tracing::*;

use nym_credentials::ecash::utils::{ecash_today, EcashTime};
use nym_credentials::ecash::utils::{cred_exp_date, ecash_today, EcashTime};
use nym_credentials_interface::{Bandwidth, ClientTicket, TicketType};
use nym_gateway_requests::models::CredentialSpendingRequest;
use nym_gateway_storage::Storage;
Expand Down Expand Up @@ -131,7 +131,7 @@ impl<S: Storage + Clone + 'static> CredentialVerifier<S> {
let bandwidth = Bandwidth::ticket_amount(credential_type.into());

self.bandwidth_storage_manager
.increase_bandwidth(bandwidth, spend_date)
.increase_bandwidth(bandwidth, cred_exp_date())
.await?;

Ok(self
Expand Down

0 comments on commit f9b3636

Please sign in to comment.