openzeppelin-upgrades icon indicating copy to clipboard operation
openzeppelin-upgrades copied to clipboard

Support custom annotation to assert that a function is an initializer

Open ericglau opened this issue 10 months ago • 0 comments

When validating errors in parent initializer calls, initializers are detected based on the function name or modifier.

In cases where the user's initializer is named differently or has differently named modifiers, allow users to annotate that a function is an initializer. See https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1095#discussion_r1890445928

ericglau avatar Feb 10 '25 15:02 ericglau