This repository was archived by the owner on Jul 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
zkevm-circuits/src/evm_circuit/util Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -445,13 +445,13 @@ impl<F: Field> TransferToGadget<F> {
445
445
}
446
446
}
447
447
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 .
455
455
#[ derive( Clone , Debug ) ]
456
456
pub ( crate ) struct TransferGadget < F , const WITH_FEE : bool > {
457
457
sender_sub_fee : Option < UpdateBalanceGadget < F , 2 , false > > ,
You can’t perform that action at this time.
0 commit comments