{
    "Function": "execute",
    "File": "contracts/governance/GovernorAlpha.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "ITimelock"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "state"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function execute(uint256 proposalId) public payable {\n        require(\n            state(proposalId) == ProposalState.Queued,\n            \"GovernorAlpha::execute: proposal can only be executed if it is queued\"\n        );\n        Proposal storage proposal = proposals[proposalId];\n        proposal.executed = true;\n        uint256 length = proposal.targets.length;\n        // C4-Audit Fix for Issue # 81\n        for (uint256 i = 0; i < length; ++i) {\n            timelock.executeTransaction{value: proposal.values[i]}(\n                proposal.targets[i],\n                proposal.values[i],\n                proposal.signatures[i],\n                proposal.calldatas[i],\n                proposal.eta\n            );\n        }\n        emit ProposalExecuted(proposalId);\n    }"
}