Skip to content

Commit

Permalink
Switch equal to a safer equal or less check
Browse files Browse the repository at this point in the history
This is to cover cases with potential signed integers in the future.
  • Loading branch information
ngrinkevich committed Aug 30, 2018
1 parent da22861 commit 3f87615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/solidity/contracts/StakeDelegatable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contract StakeDelegatable {
* @dev Only non staker addresses can be passed to the functions with this modifier.
*/
modifier notStaker(address _address) {
require(stakeBalances[_address] == 0, "Provided address is not a staker.");
require(stakeBalances[_address] <= 0, "Provided address is not a staker.");
_;
}

Expand Down

0 comments on commit 3f87615

Please sign in to comment.