Wrong error message in setRewardsReceiver()::OperatorVault.sol line 263.
https://github.com/Cyfrin/2024-09-stakelink/blob/main/contracts/linkStaking/OperatorVault.sol#L263
==> error OnlyRewardsReceiver() was already processed at Line 261 to 262.
It should be revert OnlyOnwer(); and not OnlyRewardsReceiver().
Error messages are there to lead the end user and/or the off chain Dapp connected to the smart contract.
A wrong error message could mislead the end user trying to figure out why his transaction failed.
The off chain Dapps used by the users will also be impacted if they give back to the users the nature of the error message or take any action regarding this specific error message being wrong.
Github, Manual review.
Replace at line 263 :
=> with revert OnlyOnwer(); and not OnlyRewardsReceiver().
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.