Commit Graph

79 Commits

Author SHA1 Message Date
chriseth
c5ff173431
Merge pull request #4512 from chase1745/use-explicit-data-locations-external-tests
Added default data locations to docs and other external tests.
2018-07-16 14:04:18 +02:00
Chase McDermott
3267adcd14 Added default data locations to docs and other external tests. 2018-07-14 16:42:43 -05:00
Michał Załęcki
7c1672f36e
Fix typo in the function name 2018-07-14 18:32:47 +02:00
Cryptomental
eb92d5f760 docs: Fix typos.
Used codespell and manual fixes.

Refs: #4442
2018-07-10 22:57:59 +02:00
chriseth
4547b32348
Merge pull request #4212 from jvmaia/patch-3
micropayment channel example with two chapters
2018-07-10 15:34:36 +02:00
chriseth
15283e8535 Some copy-editing. 2018-07-10 00:45:00 +02:00
João Vítor
7ffdad4ae3
add explanation about the splitSignature function 2018-06-25 19:06:44 -03:00
chriseth
17493e64ed Documentation. 2018-06-25 17:17:18 +02:00
Alex Beregszaszi
b7ad97610f Update documentation for strict address literals 2018-06-25 16:17:50 +02:00
João Vítor
6ec61e283c
update code version 2018-06-11 20:14:17 -03:00
João Vítor
48e6bb51fb
update micropayment channel example 2018-06-07 16:37:14 -03:00
João Vítor
1db78a1660
fix recoverSigner function 2018-06-03 18:20:53 -03:00
João Vítor
94381c67b9
fix returns 2018-06-03 17:57:15 -03:00
João Vítor
6bd82428d2
fix clainTimeout() function 2018-06-03 17:36:28 -03:00
João Vítor
e89d635045
fix a word 2018-06-03 13:20:49 -03:00
João Vítor
d1aa9b0a17
write the full contracts 2018-06-03 12:31:46 -03:00
João Vítor
1dca223e77
fix code syntax 2018-05-31 11:13:14 -03:00
João Vítor
61454f574a
split long lines 2018-05-31 11:03:42 -03:00
João Vítor
70345d7c9c
micropayment channel example with two chapters 2018-05-31 06:20:14 -03:00
chriseth
6c8f78fb8f Update documentation for multi variable declaration statement. 2018-05-16 03:52:24 +02:00
chriseth
65d8e5446c Update some examples to remove warnings. 2018-04-30 16:21:55 +02:00
Lefteris Karapetsas
8a7224683b
Docs: Update solidity version for revert with reason 2018-04-15 23:12:28 +02:00
chriseth
344a388d44 Update documentation. 2018-04-12 13:09:38 +02:00
NetX
089c295641 Update solidity-by-example.rst 2018-04-09 16:57:38 +02:00
chriseth
66ee9aa2f1 Use 0.4.21 pragma for documentation that uses "emit". 2018-03-02 12:29:48 +01:00
chriseth
098033c94a Fix name shadowing in ballot example contract. 2018-02-27 00:02:39 +01:00
chriseth
f58024b974 Documentation about emitting events. 2018-02-22 15:17:42 +01:00
mirgj
d01786f0aa
Update solidity-by-example.rst
highestBidder is the address.
it's highestBid that should be != 0 to be considered as pending return.

It's that right?
2018-02-22 01:42:57 +08:00
Jim McDonald
93cf4dee66 Fixes for failing tests 2017-12-13 07:55:46 +00:00
Jim McDonald
6e521d59b0 Fix Solidity warnings 2017-12-12 18:47:30 +00:00
chriseth
d0be67f6b0
Bugfix in blind auction 2017-11-23 18:43:19 +01:00
William Morriss
d05b24162f also rm biddingTime 2017-10-08 13:40:18 -07:00
William Morriss
c3ec0beba5 remove auctionStart 2017-10-08 13:24:27 -07:00
Alex Beregszaszi
550d646b97 Explain safe purchase (even number) 2017-08-28 12:14:41 +01:00
Chim Kan
efe9d55ab2 Update on the example for BlindAction
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.
2017-08-24 12:03:27 -04:00
Chim Kan
b5d2a4ecd7 Adding storage into the pointer for Voter delegate
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.
2017-08-23 20:25:12 -04:00
Adrián Calvo
8d832c7cd3 Removes reference to stack depth attack
Changed the old stack depth attack reference to a generic execution of an untrusted contract to keep the suggestion of the withdrawal pattern.
2017-08-04 14:08:37 +02:00
Alex Beregszaszi
318e52c77d Avoid using .send in the examples 2017-07-26 23:05:09 +01:00
Alex Beregszaszi
48a15ea19d Use the storage keyword in examples 2017-07-26 23:05:09 +01:00
Alex Beregszaszi
6eaf17db38 Avoid using var if not required 2017-07-26 23:05:09 +01:00
Luke Schoen
56b65cf846 Update solidity-by-example.rst. Fixes accepted bids
Only accept bid values higher than highest bid. Since returns early from `placeBid` function if `value <= highestBid`
2017-07-17 19:58:41 +10:00
Dillon Arevalo
552f2e5303 Add weight == 0 condition to giveRightToVote function
This will make it so votes can't be deleted accidentally by giving someone with weight > 1 the right to vote again
2017-06-20 20:48:49 -07:00
Yoichi Hirai
2f3aaa46e9 Merge pull request #2315 from pjstadig/patch-1
Fix typo
2017-05-26 13:16:14 +02:00
Paul Stadig
2e46383b29 Fix typo 2017-05-25 17:17:47 -04:00
Alexey Alexeyeff
f4ee578b9a Rename events in purchase example
Rename events in purchase example according to style guide
2017-05-25 19:41:40 +03:00
chriseth
a0d0776bbc Fix typo.
Fixes #2273
2017-05-17 11:20:46 +02:00
chriseth
e9458be7bd Parentheses. 2017-05-03 11:07:15 +01:00
chriseth
d58a4e08da Corrections and some style. 2017-05-03 11:07:15 +01:00
chriseth
7e838fd4a8 Cleanup to make the docs more consistent. 2017-05-03 12:03:02 +02:00
Matt Wisniewski
2b4b86aa7f Update common-patterns.rst 2017-05-03 12:03:02 +02:00