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

Change implementation of getRoles(addresses) #24

Closed EGreg closed 1 year ago

EGreg commented 1 year ago

Just like getAddresses(roles) now should return an array of arrays, so should this method. It's much more useful that way, for my client-side code.

Basically the arrays should be in the same order as the addresses. So for example:

getRoles(['0x123...', '0x294...', '0x928...']) would return this: [[0, 4], [], [2, 4, 5]

Also change all calls to this function! Across all repos!

artman325 commented 1 year ago

after investigation code in first look: seems need to check or/and update the following repos that using community(after task will be done):

Updated Created sub tasks:

artman325 commented 1 year ago

done