Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
a4cee9ed
Commit
a4cee9ed
authored
Nov 18, 2021
by
Hadrien Croubois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make setters in GovernorSettings virtual
(cherry picked from commit
6e5bf052
)
parent
65ef662a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GovernorSettings.sol
contracts/governance/extensions/GovernorSettings.sol
+3
-3
No files found.
contracts/governance/extensions/GovernorSettings.sol
View file @
a4cee9ed
...
@@ -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);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment