Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add whenNotPaused for queue in BSCGovernor #456

Merged
merged 4 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions contracts/BC_fusion/BSCGovernor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,27 @@ contract BSCGovernor is
return GovernorCompatibilityBravoUpgradeable.propose(targets, values, calldatas, description);
}

/**
* @dev Function to queue a proposal to the timelock.
* @param targets target contracts to call
* @param values msg.value for each contract call
* @param calldatas calldata for each contract call
* @param descriptionHash the description hash
*/
function queue(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

address[] memory targets,
uint256[] memory values,
bytes[] memory calldatas,
bytes32 descriptionHash
)
public
override(GovernorTimelockControlUpgradeable, IGovernorTimelockUpgradeable)
whenNotPaused
returns (uint256 proposalId)
{
return GovernorTimelockControlUpgradeable.queue(targets, values, calldatas, descriptionHash);
}

/**
* @dev Cancel a proposal. A proposal is cancellable by the proposer, but only while it is Pending state, i.e.
* before the vote starts.
Expand Down
Loading