Skip to content

Commit

Permalink
update comment on code
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Jan 31, 2025
1 parent d748209 commit db16cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/examples/digital-cash/src/pay_fee_and_fund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);

Expand Down

0 comments on commit db16cf1

Please sign in to comment.