diff options
author | chriseth <chris@ethereum.org> | 2018-02-17 00:32:30 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-22 22:17:42 +0800 |
commit | f58024b9744f557dbc77d5f7bfbc4319bde2e0c7 (patch) | |
tree | abde5538e7cedcf41cafb9fe0681ad505380c496 /docs/structure-of-a-contract.rst | |
parent | 04c922e5ed038fd5f6d43a364e11b8c459898a93 (diff) | |
download | dexon-solidity-f58024b9744f557dbc77d5f7bfbc4319bde2e0c7.tar.gz dexon-solidity-f58024b9744f557dbc77d5f7bfbc4319bde2e0c7.tar.zst dexon-solidity-f58024b9744f557dbc77d5f7bfbc4319bde2e0c7.zip |
Documentation about emitting events.
Diffstat (limited to 'docs/structure-of-a-contract.rst')
-rw-r--r-- | docs/structure-of-a-contract.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst index a9a7ed52..4a0873df 100644 --- a/docs/structure-of-a-contract.rst +++ b/docs/structure-of-a-contract.rst @@ -86,14 +86,14 @@ Events are convenience interfaces with the EVM logging facilities. :: - pragma solidity ^0.4.0; + pragma solidity ^0.4.20; // should actually be 0.4.21 contract SimpleAuction { event HighestBidIncreased(address bidder, uint amount); // Event function bid() public payable { // ... - HighestBidIncreased(msg.sender, msg.value); // Triggering event + emit HighestBidIncreased(msg.sender, msg.value); // Triggering event } } |