diff options
author | chriseth <chris@ethereum.org> | 2017-12-13 22:51:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 22:51:33 +0800 |
commit | bfc54463181a617c1a523826b34c210222c98740 (patch) | |
tree | 8c3732c7a5961c00bee6adb3f916b99744c65bf7 /docs/structure-of-a-contract.rst | |
parent | 7614b16dc9b2bb1e267e8f46834b40220fb9f9fb (diff) | |
parent | 93cf4dee666e01d6907c75c4018a701e5069daad (diff) | |
download | dexon-solidity-bfc54463181a617c1a523826b34c210222c98740.tar.gz dexon-solidity-bfc54463181a617c1a523826b34c210222c98740.tar.zst dexon-solidity-bfc54463181a617c1a523826b34c210222c98740.zip |
Merge pull request #3295 from mcdee/develop
Remove warnings in examples
Diffstat (limited to 'docs/structure-of-a-contract.rst')
-rw-r--r-- | docs/structure-of-a-contract.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst index 0b554800..e475fcd1 100644 --- a/docs/structure-of-a-contract.rst +++ b/docs/structure-of-a-contract.rst @@ -43,7 +43,7 @@ Functions are the executable units of code within a contract. pragma solidity ^0.4.0; contract SimpleAuction { - function bid() payable { // Function + function bid() public payable { // Function // ... } } @@ -72,7 +72,7 @@ Function modifiers can be used to amend the semantics of functions in a declarat _; } - function abort() onlySeller { // Modifier usage + function abort() public onlySeller { // Modifier usage // ... } } @@ -91,7 +91,7 @@ Events are convenience interfaces with the EVM logging facilities. contract SimpleAuction { event HighestBidIncreased(address bidder, uint amount); // Event - function bid() payable { + function bid() public payable { // ... HighestBidIncreased(msg.sender, msg.value); // Triggering event } |