Skip to content

Commit

Permalink
QuadraticVoting: update the final distribution calculation code #162
Browse files Browse the repository at this point in the history
  • Loading branch information
RostyslavBortman committed Jul 10, 2018
1 parent 2fbd0c9 commit 3d13e87
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions contracts/DaoBaseAuto.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import "./utils/GenericCaller.sol";
*/
contract DaoBaseAuto is GenericCaller {

bytes32 public MANAGE_GROUPS = keccak256("manageGroups");
bytes32 public ISSUE_TOKENS = keccak256("issueTokens");
bytes32 public UPGRADE_DAO_CONTRACT = keccak256("upgradeDaoContract");
bytes32 public MANAGE_GROUPS = keccak256(abi.encodePacked("manageGroups"));
bytes32 public ISSUE_TOKENS = keccak256(abi.encodePacked("issueTokens"));
bytes32 public UPGRADE_DAO_CONTRACT = keccak256(abi.encodePacked("upgradeDaoContract"));

constructor(IDaoBase _dao)public
GenericCaller(_dao)
Expand All @@ -26,7 +26,7 @@ contract DaoBaseAuto is GenericCaller {

function addGroupMemberAuto(string _group, address _a) public returns(address proposalOut){
bytes32[] memory params = new bytes32[](2);
params[0] = bytes32(keccak256(_group));
params[0] = bytes32(keccak256(abi.encodePacked(_group)));
params[1] = bytes32(_a);

return doAction(MANAGE_GROUPS, dao, msg.sender,"addGroupMemberGeneric(bytes32[])",params);
Expand Down Expand Up @@ -57,5 +57,4 @@ contract DaoBaseAuto is GenericCaller {
function allowActionByAddress(string _what, address _a) public isCanDo("manageGroups"){
function allowActionByAnyMemberOfGroup(string _what, string _groupName) public isCanDo("manageGroups"){
*/
}

}

0 comments on commit 3d13e87

Please sign in to comment.