Tooling
ModuleKit
Reference
Building
Validators
Packvalidationdata

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

Pack the validation data to return to the entryPoint. Inherited from ERC7579ValidatorBase.

Usage

ValidationData validationData = _packValidationData({
    sigFailed: false,
    validUntil: type(uint48).max,
    validAfter: 0
});

Parameters

sigFailed

  • Type: bool

False if the signature is valid, true if the signature is invalid.

validUntil

  • Type: uint48

The timestamp until which the signature is valid.

validAfter

  • Type: uint48

The timestamp after which the signature is valid.

Returns

validationData

  • Type: ValidationData | uint256

The packed validation data.