Skip to content

Commit 41c8b9d

Browse files
committed
Adding slither incorrect-equality disable annotation
This require statement breaks slither checks. It is used in other places in this contract and can be used for this case as well to disable slither check. The actual solidity code was already merged some time ago and works as expected.
1 parent 679ab7b commit 41c8b9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/staking/TokenStaking.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ contract TokenStaking is Initializable, IStaking, Checkpoints {
215215
}
216216

217217
modifier onlyOwnerOf(address stakingProvider) {
218+
// slither-disable-next-line incorrect-equality
218219
require(
219220
stakingProviders[stakingProvider].owner == msg.sender,
220221
"Caller is not owner"

0 commit comments

Comments
 (0)