contracts icon indicating copy to clipboard operation
contracts copied to clipboard

We have governor public, and a getter called getGovernor

Open davekay100 opened this issue 5 years ago • 5 comments
trafficstars

We have on Controller:

address public governor;

and

    /**
     * @notice Getter to access governor
     */
    function getGovernor() external override view returns (address) {
        return governor;
    }

We can use just one. Which one do you like @abarmat ?

davekay100 avatar Sep 22 '20 18:09 davekay100

I would just use governor()

abarmat avatar Sep 22 '20 18:09 abarmat

@davekaj dave did you do this change? I don't remember

abarmat avatar Sep 29 '20 11:09 abarmat

no i didnt,

i remember seeing that open zepplin made a suggestion to fix this too

davekay100 avatar Sep 29 '20 13:09 davekay100

Now that I see the code I think we included that so we could add the getter to the interface because it is used in Managed.sol

Maybe we could keep the getter but move governor to be private

abarmat avatar Oct 02 '20 14:10 abarmat

Oh i remember, you are right. yeah lets move it to private

davekay100 avatar Oct 02 '20 14:10 davekay100