Explorar o código

Complete docstrings L-10 (#5315)

Arr00 hai 10 meses
pai
achega
0df841d2d7

+ 4 - 1
contracts/account/utils/draft-ERC7579Utils.sol

@@ -36,7 +36,10 @@ library ERC7579Utils {
     /// @dev Execution type that does not revert on failure.
     ExecType internal constant EXECTYPE_TRY = ExecType.wrap(0x01);
 
-    /// @dev Emits when an {EXECTYPE_TRY} execution fails.
+    /**
+     * @dev Emits when an {EXECTYPE_TRY} execution fails.
+     * @param batchExecutionIndex The index of the failed transaction in the execution batch.
+     */
     event ERC7579TryExecuteFail(uint256 batchExecutionIndex, bytes result);
 
     /// @dev The provided {CallType} is not supported.

+ 2 - 0
contracts/interfaces/draft-IERC4337.sol

@@ -143,11 +143,13 @@ interface IEntryPoint is IEntryPointNonces, IEntryPointStake {
 
     /**
      * @dev Executes a batch of user operations.
+     * @param beneficiary Address to which gas is refunded up completing the execution.
      */
     function handleOps(PackedUserOperation[] calldata ops, address payable beneficiary) external;
 
     /**
      * @dev Executes a batch of aggregated user operations per aggregator.
+     * @param beneficiary Address to which gas is refunded up completing the execution.
      */
     function handleAggregatedOps(
         UserOpsPerAggregator[] calldata opsPerAggregator,

+ 1 - 0
contracts/interfaces/draft-IERC7579.sol

@@ -50,6 +50,7 @@ interface IERC7579Validator is IERC7579Module {
      *
      * MUST validate that the signature is a valid signature of the userOpHash
      * SHOULD return ERC-4337's SIG_VALIDATION_FAILED (and not revert) on signature mismatch
+     * See ERC-4337 for additional information on the return value
      */
     function validateUserOp(PackedUserOperation calldata userOp, bytes32 userOpHash) external returns (uint256);