mirror of https://github.com/poanetwork/quorum.git
changes to contract based on review comments
This commit is contained in:
parent
4fe308c10a
commit
6ef3b82a2b
|
@ -247,7 +247,7 @@ contract Clusterkeys {
|
||||||
function isVoter (string calldata _orgId, address account) external view returns (bool){
|
function isVoter (string calldata _orgId, address account) external view returns (bool){
|
||||||
uint orgIndex = getOrgIndex(_orgId);
|
uint orgIndex = getOrgIndex(_orgId);
|
||||||
uint morgIndex = getMasterOrgIndex(orgList[orgIndex].morgId);
|
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
|
// 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
Loading…
Reference in New Issue