Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Feb 22, 2024
1 parent bd0c75e commit 62cfc19
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions zkevm-circuits/src/evm_circuit/util/common_gadget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ impl<F: Field> TransferToGadget<F> {
}
}

// TODO: Merge with TransferGadget
/// The TransferWithGasFeeGadget handles an irreversible gas fee subtraction to
/// the sender and a transfer of value from sender to receiver. The value
/// transfer is only performed if the value is not zero. If the transfer is
/// performed and the receiver account doesn't exist, it will be created by
/// setting it's code_hash = EMPTY_HASH. The receiver account is also created
/// unconditionally if must_create is true. This gadget is used in BeginTx.
/// The [`TransferGadget`] handles
/// - (optional) an irreversible gas fee subtraction to the sender, and
/// - a transfer of value from sender to receiver.
///
/// The value transfer is only performed if the value is not zero.
/// It also create the receiver account when the conditions in [`TransferToGadget`] is met.
/// This gadget is used in BeginTx, Call ops, and Create.
#[derive(Clone, Debug)]
pub(crate) struct TransferGadget<F, const WITH_FEE: bool> {
sender_sub_fee: Option<UpdateBalanceGadget<F, 2, false>>,
Expand Down

0 comments on commit 62cfc19

Please sign in to comment.