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 e03ccff commit 5613281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -5,12 +5,12 @@ use ic_cdk::init;
use ic_cdk_macros::{export_candid, update};
use ic_papi_api::cycles::cycles_ledger_canister_id;
use ic_papi_api::{PaymentError, PaymentType};
use ic_papi_guard::guards::PaymentGuardTrait;
use ic_papi_guard::guards::{
attached_cycles::AttachedCyclesPayment,
caller_pays_icrc2_cycles::CallerPaysIcrc2CyclesPaymentGuard,
caller_pays_icrc2_tokens::CallerPaysIcrc2TokensPaymentGuard,
};
use ic_papi_guard::guards::PaymentGuardTrait;
use state::{set_init_args, PAYMENT_GUARD};

#[init]
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 @@ -11,4 +11,4 @@ pub mod patron_pays_icrc2_tokens;
#[allow(async_fn_in_trait)]
pub trait PaymentGuardTrait {
async fn deduct(&self, fee: TokenAmount) -> Result<(), PaymentError>;
}
}

0 comments on commit 5613281

Please sign in to comment.