add payable attribute

This commit is contained in:
Dmitriy Merkurev 2017-02-21 22:44:18 +03:00
parent 32b7d17467
commit a2f92033e7

View File

@ -81,7 +81,7 @@ This is as opposed to the more intuitive sending pattern:
mostSent = msg.value; mostSent = msg.value;
} }
function becomeRichest() returns (bool) { function becomeRichest() payable returns (bool) {
if (msg.value > mostSent) { if (msg.value > mostSent) {
// Check if call succeeds to prevent an attacker // Check if call succeeds to prevent an attacker
// from trapping the previous person's funds in // from trapping the previous person's funds in