msg.value
non-payable function#
Name: msg-value-nonpayable-function
Reports uses of msg.value
in functions that are never called from a payable function.
The value of msg.value
is always zero in such functions.
Example#
- The function
g
is never called from a payable function in this example. The value ofmsg.value
will always be zero.
Parameters#
The detector does not accept any additional parameters.