Cant remove the first operator #200
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
pauliax
Vulnerability details
Impact
function removeOperator has this check:
However, 0 is actually a valid index of the array. It represents the first operator.
Recommended Mitigation Steps
A potential solution is to use the EnumerableSet to manage the operators: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol
The text was updated successfully, but these errors were encountered: