solidity/test/libsolidity/syntaxTests/memberLookup/msg_value_modifier_payable.sol
2021-04-20 17:38:29 +02:00

6 lines
144 B
Solidity

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