Skip to content

Commit

Permalink
test internal constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Oct 10, 2024
1 parent 648145d commit eeadfef
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions contracts/abstraction/utils/ERC7579Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ type ExecType is bytes1;
type ModeSelector is bytes4;
type ModePayload is bytes22;

// slither-disable-next-line unused-state
library ERC7579Utils {
using Packing for *;

CallType constant CALLTYPE_SINGLE = CallType.wrap(0x00);
CallType constant CALLTYPE_BATCH = CallType.wrap(0x01);
CallType constant CALLTYPE_DELEGATECALL = CallType.wrap(0xFF);
ExecType constant EXECTYPE_DEFAULT = ExecType.wrap(0x00);
ExecType constant EXECTYPE_TRY = ExecType.wrap(0x01);
CallType internal constant CALLTYPE_SINGLE = CallType.wrap(0x00);
CallType internal constant CALLTYPE_BATCH = CallType.wrap(0x01);
CallType internal constant CALLTYPE_DELEGATECALL = CallType.wrap(0xFF);
ExecType internal constant EXECTYPE_DEFAULT = ExecType.wrap(0x00);
ExecType internal constant EXECTYPE_TRY = ExecType.wrap(0x01);

function encodeMode(
CallType callType,
Expand Down

0 comments on commit eeadfef

Please sign in to comment.