{
    "Function": "_clearMsgQue",
    "File": "contracts/mocks/LZEndpointMock.sol",
    "Parent Contracts": [
        "contracts/OFT/interfaces/ILayerZeroEndpoint.sol",
        "contracts/OFT/interfaces/ILayerZeroUserApplicationConfig.sol"
    ],
    "High-Level Calls": [
        "ILayerZeroReceiver"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _clearMsgQue(uint16 _srcChainId, bytes calldata _path) internal {\n        QueuedPayload[] storage msgs = msgsToDeliver[_srcChainId][_path];\n\n        // warning, might run into gas issues trying to forward through a bunch of queued msgs\n        while (msgs.length > 0) {\n            QueuedPayload memory payload = msgs[msgs.length - 1];\n            ILayerZeroReceiver(payload.dstAddress).lzReceive(_srcChainId, _path, payload.nonce, payload.payload);\n            msgs.pop();\n        }\n    }"
}