From dcae2cb31459fb5fe53359fc18c273af7679a8f8 Mon Sep 17 00:00:00 2001 From: Fangting Liu Date: Thu, 7 Nov 2024 14:01:38 -0800 Subject: [PATCH] update comments --- src/account/ModularAccountBase.sol | 2 +- src/modules/permissions/NativeTokenLimitModule.sol | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/account/ModularAccountBase.sol b/src/account/ModularAccountBase.sol index 08b2ac88..2809d07e 100644 --- a/src/account/ModularAccountBase.sol +++ b/src/account/ModularAccountBase.sol @@ -107,7 +107,7 @@ abstract contract ModularAccountBase is // Wraps execution of a native function with runtime validation and hooks // Used for upgradeTo, upgradeToAndCall, execute, executeBatch, installExecution, uninstallExecution, - // performCreate, performCreate2 + // performCreate modifier wrapNativeFunction() { DensePostHookData postHookData = _checkPermittedCallerAndAssociatedHooks(); diff --git a/src/modules/permissions/NativeTokenLimitModule.sol b/src/modules/permissions/NativeTokenLimitModule.sol index 63c36163..c1618189 100644 --- a/src/modules/permissions/NativeTokenLimitModule.sol +++ b/src/modules/permissions/NativeTokenLimitModule.sol @@ -32,8 +32,7 @@ import {IERC165, ModuleBase} from "../ModuleBase.sol"; /// @notice This module supports a total native token spend limit across User Operation gas and native transfers. /// - None of the functions are installed on the account. Account states are to be retrieved from this global /// singleton directly. -/// - This module only tracks native transfers for the 4 functions `execute`, `executeBatch`, `performCreate`, -/// and `performCreate2. +/// - This module only tracks native transfers for the 4 functions `execute`, `executeBatch`, `performCreate`. /// - By default, using a paymaster in a UO would cause the limit to not decrease. If an account uses a special /// paymaster that converts non-native tokens in the account to pay for gas, this paymaster should be added to /// the `specialPaymasters` list to enable the correct accounting of spend limits. When these paymasters are used