{
    "Function": "veto",
    "File": "contracts/governance/GovernorAlpha.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "onlyCouncil",
        "state",
        "queue",
        "require(bool,string)",
        "revert(string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function veto(uint256 proposalId, bool support) external onlyCouncil {\n        ProposalState _state = state(proposalId);\n        require(\n            _state == ProposalState.Active || _state == ProposalState.Pending,\n            \"GovernorAlpha::veto: Proposal can only be vetoed when active\"\n        );\n\n        Proposal storage proposal = proposals[proposalId];\n        address[] memory _targets = proposal.targets;\n        for (uint256 i = 0; i < _targets.length; i++) {\n            if (_targets[i] == address(this)) {\n                revert(\n                    \"GovernorAlpha::veto: council cannot veto on proposal having action with address(this) as target\"\n                );\n            }\n        }\n\n        VetoStatus storage _vetoStatus = proposal.vetoStatus;\n        _vetoStatus.hasBeenVetoed = true;\n        _vetoStatus.support = support;\n\n        if (support) {\n            queue(proposalId);\n        }\n\n        emit ProposalVetoed(proposalId, support);\n    }"
}