Can a function in base contract have "onlyInitializing" modifier and a derived contract have "reinitialilzer" modifier in its initialize function?

Can a function in base contract have "onlyInitializing" modifier and a child contract have "reinitialilzer" modifier in its initialize function?

The child contract initialize function calls the base function with the "onlyInitializing" modifier.

You should add a short snippet of code serving as an example of what you mean.
It would make it a lot easier to understand what you're asking, as well as to refer to your question when answering it.

Also, assuming that you've actually tried it before asking - where exactly did you encounter a problem - during compilation, or during runtime (i.e., an actual transaction)?

1 Like

I'm closing because I don't feel comfortable answering questions about Initializable without knowing exactly what's going on with the code.

Next time please attach a code example or something we can use to help.

1 Like