From 62cfc19a4b9f9f2d55a694dd10eee4d4cd873a24 Mon Sep 17 00:00:00 2001 From: ChihChengLiang Date: Fri, 23 Feb 2024 01:33:39 +0800 Subject: [PATCH] doc fix --- .../src/evm_circuit/util/common_gadget.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zkevm-circuits/src/evm_circuit/util/common_gadget.rs b/zkevm-circuits/src/evm_circuit/util/common_gadget.rs index 56bf063b099..1956ba693b6 100644 --- a/zkevm-circuits/src/evm_circuit/util/common_gadget.rs +++ b/zkevm-circuits/src/evm_circuit/util/common_gadget.rs @@ -445,13 +445,13 @@ impl TransferToGadget { } } -// 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 { sender_sub_fee: Option>,