aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
Commit message (Collapse)AuthorAgeFilesLines
* Update documentation for multi variable declaration statement.chriseth2018-05-161-3/+3
|
* Update some examples to remove warnings.chriseth2018-04-301-6/+6
|
* Docs: Update solidity version for revert with reasonLefteris Karapetsas2018-04-161-4/+4
|
* Update documentation.chriseth2018-04-121-22/+44
|
* Update solidity-by-example.rstNetX2018-04-091-5/+4
|
* Use 0.4.21 pragma for documentation that uses "emit".chriseth2018-03-021-3/+3
|
* Fix name shadowing in ballot example contract.chriseth2018-02-271-9/+14
|
* Documentation about emitting events.chriseth2018-02-221-9/+9
|
* Update solidity-by-example.rstmirgj2018-02-221-1/+1
| | | | | | highestBidder is the address. it's highestBid that should be != 0 to be considered as pending return. It's that right?
* Fixes for failing testsJim McDonald2017-12-131-4/+4
|
* Fix Solidity warningsJim McDonald2017-12-131-18/+24
|
* Bugfix in blind auctionchriseth2017-11-241-4/+3
|
* also rm biddingTimeWilliam Morriss2017-10-091-3/+1
|
* remove auctionStartWilliam Morriss2017-10-091-6/+4
|
* Explain safe purchase (even number)Alex Beregszaszi2017-08-281-0/+3
|
* Update on the example for BlindActionChim Kan2017-08-251-1/+1
| | | In the Mist app, the Blind Action contract cannot compile because it cannot accept implicit conversion of integer to byte32. I just added the conversion method byte32 in line 470 for bid.blindedBid.
* Adding storage into the pointer for Voter delegateChim Kan2017-08-241-1/+1
| | | | | | | | | | | | | | | Hi, The example from https://github.com/ethereum/solidity/blob/develop/docs/solidity-by-example.rst is not working. It keeps giving this error in the Mist program: Could not compile source code. Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning. Voter delegate = voters[to]; ^------------^ The solution is just to add the keyword "storage" and then the example works again.
* Removes reference to stack depth attackAdrián Calvo2017-08-041-3/+3
| | | Changed the old stack depth attack reference to a generic execution of an untrusted contract to keep the suggestion of the withdrawal pattern.
* Avoid using .send in the examplesAlex Beregszaszi2017-07-271-7/+2
|
* Use the storage keyword in examplesAlex Beregszaszi2017-07-271-2/+2
|
* Avoid using var if not requiredAlex Beregszaszi2017-07-271-2/+2
|
* Update solidity-by-example.rst. Fixes accepted bidsLuke Schoen2017-07-171-2/+2
| | | Only accept bid values higher than highest bid. Since returns early from `placeBid` function if `value <= highestBid`
* Add weight == 0 condition to giveRightToVote functionDillon Arevalo2017-06-211-4/+4
| | | | This will make it so votes can't be deleted accidentally by giving someone with weight > 1 the right to vote again
* Merge pull request #2315 from pjstadig/patch-1Yoichi Hirai2017-05-261-1/+1
|\ | | | | Fix typo
| * Fix typoPaul Stadig2017-05-261-1/+1
| |
* | Rename events in purchase exampleAlexey Alexeyeff2017-05-261-6/+6
|/ | | Rename events in purchase example according to style guide
* Fix typo.chriseth2017-05-171-1/+1
| | | Fixes #2273
* Parentheses.chriseth2017-05-031-3/+3
|
* Corrections and some style.chriseth2017-05-031-10/+10
|
* Cleanup to make the docs more consistent.chriseth2017-05-031-13/+15
|
* Update common-patterns.rstMatt Wisniewski2017-05-031-60/+44
|
* minor: fix formatting and grammarAbraham Sangha2017-04-151-3/+2
|
* Fix delegation loop in Ballot example contractRemo Fürst2017-03-091-8/+8
| | | | fixes #1753
* Update solidity-by-example.rstvarunagarwal3152016-11-041-3/+3
| | | added the space. Sorry, just slipped my mind.
* Update solidity-by-example.rstvarunagarwal3152016-11-031-11/+4
| | | | | made changes suggested to simplify code. Hope this is enough Thanks
* Update solidity-by-example.rstvarunagarwal3152016-11-031-0/+16
| | | Might be trivial, but makes more sense to be able to directly return the name of the winner for the election. If the position of the winner on the proposal[] array is returned, then people still don't know the name of the person who won.
* Rename sha3 to keccak256 in the documentationAlex Beregszaszi2016-10-061-2/+2
|
* Update documentation to version 0.4.0.chriseth2016-09-071-25/+11
|
* Merge pull request #1003 from winsvega/docschriseth2016-09-061-0/+8
|\ | | | | add "pragma solidity ^0.4.0;" to code examples
| * add "pragma solidity ^0.4.0;" to code examplesDimitry2016-09-051-0/+8
| |
* | Require ";" after "_"chriseth2016-09-051-2/+2
|/
* Use new style for the docsDenton Liu2016-08-271-2/+1
|
* Merge pull request #913 from chriseth/auctionchriseth2016-08-251-15/+29
|\ | | | | Updated the function withdraw() in the SimpleAuction and BlindAuction…
| * Updated the function withdraw() in the SimpleAuction and BlindAuction ↵Alex Darby2016-08-191-15/+29
| | | | | | | | contracts to not use a 'throw' if a address send() fails.
* | Remove trailing whitespaceDenton Liu2016-08-101-1/+1
| |
* | Add section about withdrawal patternDenton Liu2016-08-101-0/+2
|/
* Security Considerationschriseth2016-07-041-3/+21
|
* Typo.chriseth2016-06-091-1/+1
|
* stylechriseth2016-06-021-3/+5
|
* Removed some problems in documentation examples.chriseth2016-05-311-20/+58
|
* Changed inline code syntaxDenton Liu2016-05-301-1/+1
| | | | Changed from :code:`<inline>` to ``<inline>``
* Corrected solidity-by-example.rstDenton Liu2016-05-301-1/+1
| | | | Fixed inline code syntax
* Typo correction in solidity-by-example.rstMathieu Van der Haegen2016-05-261-1/+1
| | | Just correcting a simple typo in the comments of the code
* Changed whitespace formattingDenton Liu2016-05-181-1/+1
|
* Removed trailing whitespaceDenton Liu2016-05-181-2/+2
|
* Moved the location of the "||"Denton Liu2016-05-061-3/+3
|
* Fixed up formattingDenton Liu2016-05-061-62/+94
|
* Typo fixDave Hoover2016-04-121-1/+1
|
* Refund actual deposit, and not bid value.chriseth2016-01-121-1/+1
| | | | Thanks to @jonasnick for finding this. Fixes #349
* Imported documentation.chriseth2015-12-081-0/+530