Shouldn't the _disableInitializers()
be in the Transparent section and not in the UUPS section?
I'm sorry if I messed this up. I'm still new to Proxy Contracts.
Shouldn't the _disableInitializers()
be in the Transparent section and not in the UUPS section?
I'm sorry if I messed this up. I'm still new to Proxy Contracts.
Hi,
Can you add more detail to the question? The _disableInitializers
is in both constructors when you check Transparent or UUPS on the wizard, but the implementation is in the Initializable
contract. So, what do you mean exactly when you say:
Shouldn't the
_disableInitializers()
be in the Transparent section and not in the UUPS section?
Hey,
Sorry. I'm a bit confused about how it should work. I thought it should only be on Transparent contracts and not UUPS since the upgrade call is on the implementation contract.
Maybe I misunderstood it.
Hi @yanukadeneth99, please see my comment here on why this is recommended for UUPS. As a best practice it should be done in any implementation contract regardless of proxy type.
Thanks for the mention! I will read more about it to understand it better.