{
    "Function": "veto",
    "File": "contracts/governance/GovernorAlpha.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "onlyCouncil",
        "queue",
        "require(bool,string)",
        "require(bool,string)",
        "state",
        "mload(uint256)"
    ],
    "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        // C4-Audit Fix for Issue # 81\n        for (uint256 i = 0; i < _targets.length; ++i) {\n            if (_targets[i] == address(this)) {\n                // C4-Audit Fix for Issue # 167\n                bytes memory callData = proposal.calldatas[i];\n                bytes4 sig;\n                assembly {\n                    sig := mload(add(callData, 0x20))\n                }\n                require(\n                    sig != this.changeCouncil.selector,\n                    \"GovernorAlpha::veto: council cannot veto a council changing proposal\"\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    }"
}