From db16cf1ac3a32e8f8f6cae7e89fc579679f45c45 Mon Sep 17 00:00:00 2001 From: Alin Cruceat Date: Fri, 31 Jan 2025 17:24:50 +0200 Subject: [PATCH] update comment on code --- contracts/examples/digital-cash/src/pay_fee_and_fund.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/examples/digital-cash/src/pay_fee_and_fund.rs b/contracts/examples/digital-cash/src/pay_fee_and_fund.rs index 6aeafb19cd..09b9d718fd 100644 --- a/contracts/examples/digital-cash/src/pay_fee_and_fund.rs +++ b/contracts/examples/digital-cash/src/pay_fee_and_fund.rs @@ -20,8 +20,8 @@ pub trait PayFeeAndFund: storage::StorageModule + helpers::HelpersModule { let fee_without_first_token = fee_token.amount.clone() * (payments.len() as u32 - 1); require!( - (provided_fee_token.amount == fee_without_first_token || // case when first first token is the exact fee amount - provided_fee_token.amount > fee_with_first_token), // case when first token also covers part of the funds + (provided_fee_token.amount == fee_without_first_token || // case when the first token is the exact fee amount + provided_fee_token.amount > fee_with_first_token), // case when the first token also covers part of the funds "payment not covering fees" );