Intercoin / CommunityContract

Smart contract for managing community membership and roles
https://intercoin.org
GNU Affero General Public License v3.0
1 stars 2 forks source link

24 change implementation of getrolesaddresses #26

Closed artman325 closed 1 year ago

artman325 commented 1 year ago

now getRoles and getAddresses return has array as input params and return array of arrays like this function getRoles(address[] calldata accounts)external view returns(uint256[][] memory); function getAddresses(uint8[] calldata rolesIndexes) external view returns(uint256[][] memory);

Output will be like this [ [1,2,3,4], [2,5], [], [7,8,9]] and [ [0x567... ,0xab4... ,0xfe5... ], [0x123... ,0x456...], [], [0x123...]] respectively