Skip to content

Commit

Permalink
charge_content_owner fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aie0 committed Dec 1, 2023
1 parent 09724a7 commit 705eead
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pallets/ddc-payouts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,20 @@ pub mod pallet {
.ok_or(Error::<T>::ArithmeticOverflow)?;

let customer_id = payer.0.clone();
let amount_actually_charged = T::CustomerCharger::charge_content_owner(
customer_id.clone(),
updated_billing_report.vault.clone(),
total_customer_charge,
)?;
/*
let amount_actually_charged = match T::CustomerCharger::charge_content_owner(
customer_id.clone(),
updated_billing_report.vault.clone(),
total_customer_charge,
) {
Ok(actually_charged) => actually_charged,
Err(_e) => 0,
};
}; */

if amount_actually_charged < total_customer_charge {
// debt
Expand Down

0 comments on commit 705eead

Please sign in to comment.