Skip to content

Conversation

nadir-akhtar
Copy link
Contributor

@nadir-akhtar nadir-akhtar commented Aug 4, 2025

Motivation:

The __AVSRegistrar_init function lacks an onlyInitializing modifier, which ensures that the function can only be called during contract setup.

Modifications:

  • Add the onlyInitializing modifier to the AVSRegistrar contract

Result:

Guarantee that this initializing function cannot be called out of the initialization process

@nadir-akhtar nadir-akhtar changed the title fix(audit): add onlyInitializing modifier to initializing function fix(I-07): add onlyInitializing modifier to initializing function Aug 4, 2025
function __AVSRegistrar_init(
address _avs
) internal virtual {
) internal virtual onlyInitializing {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can likely be a forge lint, will note this.

@nadir-akhtar nadir-akhtar merged commit c77cc5f into dev Aug 4, 2025
9 checks passed
@nadir-akhtar nadir-akhtar deleted the nadir/only-initializing-avsRegistrar branch August 4, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants