function addCoop(uint _coop_id, string memory _name) public isOwner { bytes memory tmpRequire = bytes(coops[_coop_id]);//Convert to bytes in order to be able to use length require(tmpRequire.length == 0, "Ya existe una coop con este ID"); coops[_coop_id] = _name; coopsIndex.push(_coop_id); }
0.7.1