{
    "Function": "updateShareholder",
    "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": [
        "require(bool,string)",
        "onlyOwner",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function updateShareholder(uint256 _accountIndex, uint256 _weight) external onlyOwner {\n        require(_accountIndex + 1 <= shareholders.length, \"FeeSplitter: INVALID_ACCOUNT_INDEX\");\n        uint256 _totalWeights = totalWeights;\n        _totalWeights -= shareholders[_accountIndex].weight;\n        shareholders[_accountIndex].weight = _weight;\n        _totalWeights += _weight;\n        require(_totalWeights > 0, \"FeeSplitter: TOTAL_WEIGHTS_ZERO\");\n        totalWeights = _totalWeights;\n    }"
}