Simplified mock.

pull/2069/head
Alberto Cuesta Cañada 5 years ago
parent 6a14ec4d04
commit 67468e464b
  1. 8
      contracts/mocks/EnumerableSetMock.sol

@ -14,20 +14,20 @@ contract EnumerableSetMock{
}
function contains(address value) public view returns (bool) {
return EnumerableSet.contains(set, value);
return set.contains(value);
}
function add(address value) public {
bool result = EnumerableSet.add(set, value);
bool result = set.add(value);
emit TransactionResult(result);
}
function remove(address value) public {
bool result = EnumerableSet.remove(set, value);
bool result = set.remove(value);
emit TransactionResult(result);
}
function enumerate() public view returns (address[] memory) {
return EnumerableSet.enumerate(set);
return set.enumerate();
}
}

Loading…
Cancel
Save