I have an upgradable contract using
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
In the constructor (initializer) for such contract i do:
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
and some other stuff
I saw another contract importing the access control upgradeable and in the initializer there is this call:
__AccessControl_init()
What is the purpose of this call ? Does this should be put on any contract having upgradeability and access control ? Thanks!