addMessageHashForAutoWithdraw()::Messaging.sol
shouldn't be payable
since it doesn't require sending any native tokens to work.
If there are native tokens
sent by mistake they won't be recoverable. This function doesn't need to be (and should not be) payable
since it doesn't require sending any native tokens to work.
Possible loss of funds.
Github, VisualCode.
Remove payable
from the function so it won't allow sending native tokens by error.
Please, do not suppose impacts, think about the real impact of the bug and check the CodeHawks documentation to confirm: https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity A PoC always helps to understand the real impact possible.
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.