{
    "Function": "setRoyaltiesWeight",
    "File": "contracts/FeeSplitter.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "onlyOwner",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function setRoyaltiesWeight(uint256 _weight) public onlyOwner {\n        require(_weight != 0, \"FS: WEIGHT_ZERO\");\n        totalWeights = totalWeights + _weight - royaltiesWeight;\n        royaltiesWeight = _weight;\n        emit RoyaltiesWeightUpdated(_weight);\n    }"
}