mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
add payable attribute
This commit is contained in:
parent
32b7d17467
commit
a2f92033e7
@ -81,7 +81,7 @@ This is as opposed to the more intuitive sending pattern:
|
||||
mostSent = msg.value;
|
||||
}
|
||||
|
||||
function becomeRichest() returns (bool) {
|
||||
function becomeRichest() payable returns (bool) {
|
||||
if (msg.value > mostSent) {
|
||||
// Check if call succeeds to prevent an attacker
|
||||
// from trapping the previous person's funds in
|
||||
|
Loading…
Reference in New Issue
Block a user