blob: 4cad443927969ac6cee110e6bda48a16c1693300 (
plain) (
blame)
1
2
3
4
5
6
|
contract C {
modifier m(uint _amount, uint _avail) { require(_avail >= _amount); _; }
function f() m(1 ether, msg.value) public view {}
}
// ----
// Warning: (118-127): "msg.value" used in non-payable function. Do you want to add the "payable" modifier to this function?
|