Skip to content

Commit

Permalink
bit shift for xtra alidator check flag / title nit
Browse files Browse the repository at this point in the history
  • Loading branch information
nerderlyne committed Sep 7, 2023
1 parent 7336ceb commit 8ee4dc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Keep.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {ERC1155TokenReceiver, KeepToken} from "./KeepToken.sol";
import {Multicallable} from "./utils/Multicallable.sol";

/// @title Keep
/// @notice Tokenized multisig wallet.
/// @notice Multitoken signature auth system.
/// @dev Optimized for multisig operations.
/// @author z0r0z.eth
/// @custom:coauthor @ControlCplusControlV
/// @custom:coauthor boredretard.eth
Expand Down Expand Up @@ -507,8 +508,8 @@ contract Keep is ERC1155TokenReceiver, KeepToken, Multicallable {
// Check signature `quorum` is met and validate auth.
validationData = _validate(userOpHash, userOp.signature, id);

// If permissioned ID key (4337-10000), send `userOp` for `validator` check.
if (id > 4336 && id < 10001)
// Extract 'validator flag' in 33rd bit. If set, `validator` check `userOp` with `id`.
if (userOp.nonce & (1 << 32) != 0)
validationData = validator.validateUserOp(userOp, userOpHash, id);

// Send any missing funds to `entrypoint()` (msg.sender).
Expand Down

0 comments on commit 8ee4dc8

Please sign in to comment.