diff --git a/chains.json b/chains.json index 44b9cb7..370318c 100644 --- a/chains.json +++ b/chains.json @@ -72,6 +72,10 @@ "0x380d1fdd01cac4effd59d4a2b82246f9971f65ce4b0abbd0c8158a84375cc36a": { "name": "Meritocracy", "address": "0x755f52Afe8166011B978aE142465c25b9D3F9ab3" + }, + "0xbc4cdf618077fe963006a9927c9981f7c83011ab64abc40b4c0e8a2b95bb969b": { + "name": "Meritocracy", + "address": "0x68B8c6cB36B5E476Bb31598C82D91810cda740B8" } } } diff --git a/contracts/Meritocracy.sol b/contracts/Meritocracy.sol index 05bb630..2731d79 100644 --- a/contracts/Meritocracy.sol +++ b/contracts/Meritocracy.sol @@ -59,7 +59,7 @@ contract Meritocracy { Contributor memory cAllocator = contributors[msg.sender]; // Requirements require(cAllocator.addr == msg.sender); // is sender a Contributor? - // require(ERC20Token(token).transferFrom(msg.sender, address(this), _amount)); // TODO fix this, check balance Contributor has funds to allocate + require(ERC20Token(token).transferFrom(msg.sender, address(this), _amount)); // Body // cAllocator.inPot = true; individualAmount = _amount / registry.length; @@ -125,7 +125,7 @@ contract Meritocracy { registry.push(_contributor); } - // Add Multiple Contributors to Tegistry in one tx + // Add Multiple Contributors to the Registry in one tx function addContributors(address[] calldata _newContributors ) external { // Requirements require(registry.length + _newContributors.length <= maxContributors);