{
    "Function": "revertIfInvalidFee",
    "File": "contracts/interchain-governance-executor/InterchainProposalSender.sol",
    "Parent Contracts": [
        "contracts/interchain-governance-executor/interfaces/IInterchainProposalSender.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert InvalidFee()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function revertIfInvalidFee(InterchainCalls.InterchainCall[] calldata interchainCalls) private {\n        uint256 totalGas = 0;\n        for (uint256 i = 0; i < interchainCalls.length; ) {\n            totalGas += interchainCalls[i].gas;\n            unchecked {\n                ++i;\n            }\n        }\n\n        if (totalGas != msg.value) {\n            revert InvalidFee();\n        }\n    }"
}