Skip to content

Commit

Permalink
N-03
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Nov 19, 2024
1 parent 4c5935a commit fa30a20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/account/utils/draft-ERC7579Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ library ERC7579Utils {
using Packing for *;

/// @dev A single `call` execution.
CallType constant CALLTYPE_SINGLE = CallType.wrap(0x00);
CallType internal constant CALLTYPE_SINGLE = CallType.wrap(0x00);

/// @dev A batch of `call` executions.
CallType constant CALLTYPE_BATCH = CallType.wrap(0x01);
CallType internal constant CALLTYPE_BATCH = CallType.wrap(0x01);

/// @dev A `delegatecall` execution.
CallType constant CALLTYPE_DELEGATECALL = CallType.wrap(0xFF);
CallType internal constant CALLTYPE_DELEGATECALL = CallType.wrap(0xFF);

/// @dev Default execution type that reverts on failure.
ExecType constant EXECTYPE_DEFAULT = ExecType.wrap(0x00);
ExecType internal constant EXECTYPE_DEFAULT = ExecType.wrap(0x00);

/// @dev Execution type that does not revert on failure.
ExecType constant EXECTYPE_TRY = ExecType.wrap(0x01);
ExecType internal constant EXECTYPE_TRY = ExecType.wrap(0x01);

/// @dev Emits when an {EXECTYPE_TRY} execution fails.
event ERC7579TryExecuteFail(uint256 batchExecutionIndex, bytes result);
Expand Down

0 comments on commit fa30a20

Please sign in to comment.