{
    "Function": "addMerkleTree",
    "File": "contracts/MerkleDropFactory.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "depositTokens"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function addMerkleTree(bytes32 newRoot, bytes32 ipfsHash, address tokenAddress, uint tokenBalance) public {\n        // prefix operator ++ increments then evaluates\n        merkleTrees[++numTrees] = MerkleTree(\n            newRoot,\n            ipfsHash,\n            tokenAddress,\n            0,  // ain't no tokens in here yet\n            0   // ain't nobody claimed no tokens yet either\n        );\n        // you don't get to add a tree without funding it\n        depositTokens(numTrees, tokenBalance);\n        // I guess we should tell people (interfaces) what happened\n        emit MerkleTreeAdded(numTrees, tokenAddress, newRoot, ipfsHash);\n    }"
}