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

Commit 62cfc19

Browse files
doc fix
1 parent bd0c75e commit 62cfc19

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

zkevm-circuits/src/evm_circuit/util/common_gadget.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,13 @@ impl<F: Field> TransferToGadget<F> {
445445
}
446446
}
447447

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

0 commit comments

Comments
 (0)