Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Oct 1, 2024
1 parent da2152f commit 7596930
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/example/paid_service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use ic_papi_api::cycles::cycles_ledger_canister_id;
use ic_papi_api::{PaymentError, PaymentType};
use ic_papi_guard::guards::{
attached_cycles::AttachedCyclesPayment,
caller_pays_icrc2_tokens::CallerPaysIcrc2TokensPaymentGuard,
caller_pays_icrc2_cycles::CallerPaysIcrc2CyclesPaymentGuard,
caller_pays_icrc2_tokens::CallerPaysIcrc2TokensPaymentGuard,
};
use ic_papi_guard::guards::{PaymentContext, PaymentGuard, PaymentGuard2};
use state::{set_init_args, PAYMENT_GUARD};
Expand Down
7 changes: 6 additions & 1 deletion src/guard/src/guards/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ use ic_papi_api::{
};

use super::{
attached_cycles::AttachedCyclesPayment, caller_pays_icrc2_cycles::CallerPaysIcrc2CyclesPaymentGuard, caller_pays_icrc2_tokens::CallerPaysIcrc2TokensPaymentGuard, patron_pays_icrc2_cycles::PatronPaysIcrc2CyclesPaymentGuard, patron_pays_icrc2_tokens::PatronPaysIcrc2TokensPaymentGuard, PaymentContext, PaymentGuard, PaymentGuard2
attached_cycles::AttachedCyclesPayment,
caller_pays_icrc2_cycles::CallerPaysIcrc2CyclesPaymentGuard,
caller_pays_icrc2_tokens::CallerPaysIcrc2TokensPaymentGuard,
patron_pays_icrc2_cycles::PatronPaysIcrc2CyclesPaymentGuard,
patron_pays_icrc2_tokens::PatronPaysIcrc2TokensPaymentGuard, PaymentContext, PaymentGuard,
PaymentGuard2,
};

/// A guard that accepts a user-specified payment type, providing the vendor supports it.
Expand Down
2 changes: 1 addition & 1 deletion src/guard/src/guards/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use candid::Principal;
use ic_papi_api::{caller::TokenAmount, PaymentError, PaymentType};
pub mod any;
pub mod attached_cycles;
pub mod caller_pays_icrc2_tokens;
pub mod caller_pays_icrc2_cycles;
pub mod caller_pays_icrc2_tokens;
pub mod patron_pays_icrc2_cycles;
pub mod patron_pays_icrc2_tokens;

Expand Down

0 comments on commit 7596930

Please sign in to comment.