Skip to main content

Signature

Description

Creates a new simple policy seeded with accounts as initial members. Permissionless. Revert conditions:
  • ZeroAddressadmin is address(0). Takes precedence over BatchSizeTooLarge.
  • IncompatiblePolicyTypepolicyType is UNION or INTERSECT. Use createCompositePolicy for composite policies.
  • BatchSizeTooLargeaccounts.length exceeds the registry limit.
  • Panic(0x11) — arithmetic overflow when the policy counter has reached its maximum value.

Parameters

Returns

Access control

Permissionless creation, but state-changing registry calls require the feature to be active.

Policy interaction

This is part of the singleton PolicyRegistry surface used by B20 policy scopes.
Passing policyType byte 2 (UNION) or 3 (INTERSECT) now reverts with IncompatiblePolicyType. Use createCompositePolicy to create composite policies.

Example