Tooling
ModuleKit
Reference
ERC-4337 Data Libs
sentinellist
sentinellist4337lib
Contains

⚠️ Deprecation Notice

ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev


title: "contains"

Checks if the sentinel list contains a given address.

Usage

bool contains = list.contains(account, address(4));

Parameters

self

  • Type: SentinelList

The storage pointer of the list.

account

  • Type: address

The account address.

entry

  • Type: address

The address to check for in the list.

Returns

isContained

  • Type: bool

Returns true if the entry is contained in the list and false otherwise.