From 705eeade8fa9ca5f760637da020b9ad0707dad0a Mon Sep 17 00:00:00 2001 From: Victor Genin Date: Fri, 1 Dec 2023 12:03:42 +0200 Subject: [PATCH] charge_content_owner fail --- pallets/ddc-payouts/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pallets/ddc-payouts/src/lib.rs b/pallets/ddc-payouts/src/lib.rs index 036c521c8..af50c033b 100644 --- a/pallets/ddc-payouts/src/lib.rs +++ b/pallets/ddc-payouts/src/lib.rs @@ -378,6 +378,12 @@ pub mod pallet { .ok_or(Error::::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(), @@ -385,7 +391,7 @@ pub mod pallet { ) { Ok(actually_charged) => actually_charged, Err(_e) => 0, - }; + }; */ if amount_actually_charged < total_customer_charge { // debt