Tooling
ModuleKit
Reference
ERC-4337 Data Libs
sentinellist
sentinellist4337lib
Safepush

⚠️ 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: "safePush"

Add an item to the list and initialize it if it is not initialized.

Usage

list.safePush(account, address(newEntry));

Parameters

self

  • Type: SentinelList

The storage pointer of the list.

account

  • Type: address

The account address.

newEntry

  • Type: address

The entry to be added to the list.

Returns

None