Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jul 30, 2024
1 parent a7eb17e commit 1de77b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ contract TokenWithRefunds {
let tx_fee = context.transaction_fee();

// 2. We check that user funded the fee payer contract with at least the tx fee.
assert(!funded_amount.lt(tx_fee), "tx fee is higher than funded amount");
assert(!funded_amount.lt(tx_fee), "tx fee is higher than funded amount"); // funded_amout >= tx_fee

// 3. We complete the refund and get the note hashes.
let (fee_payer_note_hash, user_note_hash) = TokenNote::complete_refund(fee_payer_point, user_point, funded_amount, tx_fee);
Expand Down

0 comments on commit 1de77b7

Please sign in to comment.