@@ -4,12 +4,10 @@ pragma solidity 0.8.24;
44
55import "./RNG.sol " ;
66import "./IRandomizer.sol " ;
7- import "../proxy/UUPSProxiable.sol " ;
8- import "../proxy/Initializable.sol " ;
97
108/// @title Random Number Generator that uses Randomizer.ai
119/// https://randomizer.ai/
12- contract RandomizerRNG is RNG , UUPSProxiable , Initializable {
10+ contract RandomizerRNG is RNG {
1311 // ************************************* //
1412 // * Storage * //
1513 // ************************************* //
@@ -52,19 +50,10 @@ contract RandomizerRNG is RNG, UUPSProxiable, Initializable {
5250 // * Constructor * //
5351 // ************************************* //
5452
55- /// @dev Constructor, initializing the implementation to reduce attack surface.
56- constructor () {
57- _disableInitializers ();
58- }
59-
60- /// @dev Initializer
53+ /// @dev Constructor
6154 /// @param _randomizer Randomizer contract.
6255 /// @param _governor Governor of the contract.
63- function initialize (
64- address _governor ,
65- address _sortitionModule ,
66- IRandomizer _randomizer
67- ) external reinitializer (1 ) {
56+ constructor (address _governor , address _sortitionModule , IRandomizer _randomizer ) {
6857 governor = _governor;
6958 sortitionModule = _sortitionModule;
7059 randomizer = _randomizer;
@@ -75,14 +64,6 @@ contract RandomizerRNG is RNG, UUPSProxiable, Initializable {
7564 // * Governance * //
7665 // ************************ //
7766
78- /**
79- * @dev Access Control to perform implementation upgrades (UUPS Proxiable)
80- * @dev Only the governor can perform upgrades (`onlyByGovernor`)
81- */
82- function _authorizeUpgrade (address ) internal view override onlyByGovernor {
83- // NOP
84- }
85-
8667 /// @dev Changes the governor of the contract.
8768 /// @param _governor The new governor.
8869 function changeGovernor (address _governor ) external onlyByGovernor {
0 commit comments