API improvements for EnumerableSet (#2151)
* Add revert reason to EnumerableSet.get. * Rename EnumerableSet values to keys * Rename get to at * Add changelog entry * Rename keys to values * Add leading underscore to struct members
This commit is contained in:
@ -96,7 +96,7 @@ abstract contract AccessControl is Context {
|
||||
* for more information.
|
||||
*/
|
||||
function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
|
||||
return _roles[role].members.get(index);
|
||||
return _roles[role].members.at(index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user