{
    "Function": "getTrustedRemoteAddress",
    "File": "contracts/OFT/lzApp/LzApp.sol",
    "Parent Contracts": [
        "contracts/OFT/interfaces/ILayerZeroUserApplicationConfig.sol",
        "contracts/OFT/interfaces/ILayerZeroReceiver.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [
        "BytesLib"
    ],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [
        "slice"
    ],
    "Low-Level Calls": [],
    "Code": "function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory) {\n        bytes memory path = trustedRemoteLookup[_remoteChainId];\n        require(path.length != 0, \"LzApp: no trusted path record\");\n        return path.slice(0, path.length - 20); // the last 20 bytes should be address(this)\n    }"
}