aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-02-22 19:05:40 +0800
committerGitHub <noreply@github.com>2017-02-22 19:05:40 +0800
commit0177d964b1cf0f7a238f11aa9b617d26dddf7caf (patch)
tree25887e6b772c7c56507345c6f9a936edd9353ae2
parent0b67fee3fdc323b63352ec39a03e114dd02ec496 (diff)
parenta2f92033e78abf3b3e04fca4bf8a5a2c27e465fb (diff)
downloaddexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.tar
dexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.tar.gz
dexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.tar.bz2
dexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.tar.lz
dexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.tar.xz
dexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.tar.zst
dexon-solidity-0177d964b1cf0f7a238f11aa9b617d26dddf7caf.zip
Merge pull request #1714 from dimorinny/develop
Add lost payable attribute to sample withdrawal pattern contract in docs
-rw-r--r--docs/common-patterns.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/common-patterns.rst b/docs/common-patterns.rst
index fa5e68a6..a2d7ce71 100644
--- a/docs/common-patterns.rst
+++ b/docs/common-patterns.rst
@@ -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