Closed allwin199 closed 1 year ago
In contracts/proxies/SafeProxy.sol
contracts/proxies/SafeProxy.sol
address internal singleton; constructor(address _singleton) { require(_singleton != address(0), "Invalid singleton address provided"); singleton = _singleton; }
Can singleton be converted to immutable?
singleton
immutable
address internal immutable singleton;
singleton value is mutated only in the constructor, so it can be declared as immutable.
If this change is necessary, I can raise a PR.
If it's declared as immutable, upgrades would not be possible.
got it!
Description
In
contracts/proxies/SafeProxy.sol
Can
singleton
be converted toimmutable
?