Skip to content

Commit

Permalink
rename global comparators
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Oct 10, 2024
1 parent 0a2fb48 commit 2073799
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contracts/account/utils/draft-ERC7579Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -216,27 +216,27 @@ library ERC7579Utils {
}

// Operators
using {_eqCallTypeGlobal as ==} for CallType global;
using {_eqExecTypeGlobal as ==} for ExecType global;
using {_eqModeSelectorGlobal as ==} for ModeSelector global;
using {_eqModePayloadGlobal as ==} for ModePayload global;
using {eqCallType as ==} for CallType global;
using {eqExecType as ==} for ExecType global;
using {eqModeSelector as ==} for ModeSelector global;
using {eqModePayload as ==} for ModePayload global;

/// @dev Compares two `CallType` values for equality.
function _eqCallTypeGlobal(CallType a, CallType b) pure returns (bool) {
function eqCallType(CallType a, CallType b) pure returns (bool) {
return CallType.unwrap(a) == CallType.unwrap(b);
}

/// @dev Compares two `ExecType` values for equality.
function _eqExecTypeGlobal(ExecType a, ExecType b) pure returns (bool) {
function eqExecType(ExecType a, ExecType b) pure returns (bool) {
return ExecType.unwrap(a) == ExecType.unwrap(b);
}

/// @dev Compares two `ModeSelector` values for equality.
function _eqModeSelectorGlobal(ModeSelector a, ModeSelector b) pure returns (bool) {
function eqModeSelector(ModeSelector a, ModeSelector b) pure returns (bool) {
return ModeSelector.unwrap(a) == ModeSelector.unwrap(b);
}

/// @dev Compares two `ModePayload` values for equality.
function _eqModePayloadGlobal(ModePayload a, ModePayload b) pure returns (bool) {
function eqModePayload(ModePayload a, ModePayload b) pure returns (bool) {
return ModePayload.unwrap(a) == ModePayload.unwrap(b);
}

0 comments on commit 2073799

Please sign in to comment.