solidity/test/libsolidity/syntaxTests/memberLookup/msg_value_modifier_payable.sol

5 lines
136 B
Solidity

contract C {
modifier costs(uint _amount) { require(msg.value >= _amount); _; }
function f() costs(1 ether) public payable {}
}