mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1714 from dimorinny/develop
Add lost payable attribute to sample withdrawal pattern contract in docs
This commit is contained in:
commit
0177d964b1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user