diff options
author | Dmitriy Merkurev <dmerkurev@avito.ru> | 2017-02-22 03:44:18 +0800 |
---|---|---|
committer | Dmitriy Merkurev <dmerkurev@avito.ru> | 2017-02-22 03:44:18 +0800 |
commit | a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb (patch) | |
tree | a24e00a0ae5daa1cc5f9b27720cab8dd64d15772 | |
parent | 32b7d17467abe02ebbd503e994092f718b92172f (diff) | |
download | dexon-solidity-a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb.tar.gz dexon-solidity-a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb.tar.zst dexon-solidity-a2f92033e78abf3b3e04fca4bf8a5a2c27e465fb.zip |
add payable attribute
-rw-r--r-- | docs/common-patterns.rst | 2 |
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 |