aboutsummaryrefslogtreecommitdiffstats
path: root/docs/common-patterns.rst
diff options
context:
space:
mode:
authorDmitriy Merkurev <dmerkurev@avito.ru>2017-02-22 03:44:18 +0800
committerDmitriy Merkurev <dmerkurev@avito.ru>2017-02-22 03:44:18 +0800
commita2f92033e78abf3b3e04fca4bf8a5a2c27e465fb (patch)
treea24e00a0ae5daa1cc5f9b27720cab8dd64d15772 /docs/common-patterns.rst
parent32b7d17467abe02ebbd503e994092f718b92172f (diff)
downloaddexon-solidity-a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb.tar.gz
dexon-solidity-a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb.tar.zst
dexon-solidity-a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb.zip
add payable attribute
Diffstat (limited to 'docs/common-patterns.rst')
-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