{
    "Function": "getRevertMsg",
    "File": "src/Libraries/LibUtil.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "LibBytes"
    ],
    "Internal Calls": [
        "abi.decode()"
    ],
    "Library Calls": [
        "slice"
    ],
    "Low-Level Calls": [],
    "Code": "function getRevertMsg(bytes memory _res) internal pure returns (string memory) {\n        // If the _res length is less than 68, then the transaction failed silently (without a revert message)\n        if (_res.length < 68) return \"Transaction reverted silently\";\n        bytes memory revertData = _res.slice(4, _res.length - 4); // Remove the selector which is the first 4 bytes\n        return abi.decode(revertData, (string)); // All that remains is the revert string\n    }"
}