Merge pull request #1714 from dimorinny/develop

Add lost payable attribute to sample withdrawal pattern contract in docs
This commit is contained in:
chriseth 2017-02-22 12:05:40 +01:00 committed by GitHub
commit 0177d964b1

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