changes to contract based on review comments

This commit is contained in:
vsmk98 2019-02-12 20:24:31 +08:00
parent 4fe308c10a
commit 6ef3b82a2b
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ contract Clusterkeys {
function isVoter (string calldata _orgId, address account) external view returns (bool){
uint orgIndex = getOrgIndex(_orgId);
uint morgIndex = getMasterOrgIndex(orgList[orgIndex].morgId);
return (masterOrgList[morgIndex].voterIndex[account] == 0);
return (!(masterOrgList[morgIndex].voterIndex[account] == 0));
}
// checks if the voter account is already in the voter accounts list for the org

File diff suppressed because one or more lines are too long