Commit 6e5bf052 by Hadrien Croubois

make setters in GovernorSettings virtual

parent a94cf050
...@@ -58,7 +58,7 @@ abstract contract GovernorSettings is Governor { ...@@ -58,7 +58,7 @@ abstract contract GovernorSettings is Governor {
* *
* Emits a {VotingDelaySet} event. * Emits a {VotingDelaySet} event.
*/ */
function setVotingDelay(uint256 newVotingDelay) public onlyGovernance { function setVotingDelay(uint256 newVotingDelay) public virtual onlyGovernance {
_setVotingDelay(newVotingDelay); _setVotingDelay(newVotingDelay);
} }
...@@ -67,7 +67,7 @@ abstract contract GovernorSettings is Governor { ...@@ -67,7 +67,7 @@ abstract contract GovernorSettings is Governor {
* *
* Emits a {VotingPeriodSet} event. * Emits a {VotingPeriodSet} event.
*/ */
function setVotingPeriod(uint256 newVotingPeriod) public onlyGovernance { function setVotingPeriod(uint256 newVotingPeriod) public virtual onlyGovernance {
_setVotingPeriod(newVotingPeriod); _setVotingPeriod(newVotingPeriod);
} }
...@@ -76,7 +76,7 @@ abstract contract GovernorSettings is Governor { ...@@ -76,7 +76,7 @@ abstract contract GovernorSettings is Governor {
* *
* Emits a {ProposalThresholdSet} event. * Emits a {ProposalThresholdSet} event.
*/ */
function setProposalThreshold(uint256 newProposalThreshold) public onlyGovernance { function setProposalThreshold(uint256 newProposalThreshold) public virtual onlyGovernance {
_setProposalThreshold(newProposalThreshold); _setProposalThreshold(newProposalThreshold);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment