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:
Nicolás Venturo
2020-03-27 18:39:18 -03:00
committed by GitHub
parent 24c37c1f9e
commit 7415ebe8bc
5 changed files with 42 additions and 31 deletions

View File

@ -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);
}
/**