Commit Graph

338 Commits

Author SHA1 Message Date
Dave Hoover
1bb53ad3e7 Small documentation update 2016-08-23 22:53:30 -05:00
chriseth
0d736fde6d Merge pull request #706 from Denton-L/withdrawal-pattern
Add Withdrawal Pattern Example
2016-08-20 02:57:07 +02:00
Denton Liu
e27493aa83 Remove throw from withdrawal pattern 2016-08-18 12:56:39 -04:00
Denton Liu
bbe7c493ad Document throwing on contract-creation fail 2016-08-18 12:47:41 -04:00
Denton Liu
c2cfc819a2 Document throwing on calling empty code 2016-08-17 14:13:53 -04:00
Denton Liu
1826579f80 Add documentation about throwing 2016-08-17 12:09:20 -04:00
chriseth
b2507e9f10 Merge pull request #839 from chriseth/checkcode
BREAKING: Make function calls throw if target does not have code.
2016-08-17 16:44:15 +02:00
chriseth
d6579a0a5f Merge pull request #888 from chriseth/throwOnDivZero
Throw on division by zero.
2016-08-17 16:43:13 +02:00
chriseth
774bb8ab3b Make function calls throw if target does not have code.
Low-level calls still just execute and will actually report "success".
This allows `x.call.value(y)()` for x being a non-contract account.
2016-08-17 11:30:40 +02:00
chriseth
9c83109549 BREAKING: return only exits current function/modifier 2016-08-17 11:29:31 +02:00
chriseth
e7084d9e16 Throw on division by zero. 2016-08-17 11:27:15 +02:00
chriseth
e4578982c6 Merge pull request #905 from ethereum/chriseth-patch-1
Docs: wording: recursive call exploit -> reentrancy exploit
2016-08-17 11:14:47 +02:00
chriseth
d5505e21eb Merge pull request #838 from chriseth/ecrecover
Make ecrecover return zero for malformed input.
2016-08-17 11:05:20 +02:00
chriseth
a63f94e042 Fix docs. (#916) 2016-08-17 11:04:40 +02:00
Alex Beregszaszi
ec3298535e Introduce hex literals (#832)
* Introduce hex keyword token

* Support hex literals

* Include tests for hex literals

* Document hex literals
2016-08-16 16:31:23 +02:00
gl367
c547f9c24b fix typo in costs modifier (#850) 2016-08-16 16:26:57 +02:00
chriseth
dbc95570cb Merge pull request #903 from mocamircea/patch-8
Update control-structures.rst
2016-08-16 16:24:04 +02:00
chriseth
480cf384bb Merge pull request #710 from chriseth/throwFailedCreate
BREAKING: Throw if contract creation fails.
2016-08-16 16:13:56 +02:00
Mircea Moca
b2d6097653 Update control-structures.rst
Splitted example.
2016-08-16 16:30:44 +03:00
chriseth
70994f4996 Merge pull request #904 from mocamircea/patch-9
Update control-structures.rst
2016-08-16 15:08:05 +02:00
Mircea Moca
d24c431ce5 Update control-structures.rst 2016-08-16 16:06:08 +03:00
chriseth
d731225d02 Actually better to return zero on error. 2016-08-16 14:53:01 +02:00
chriseth
2a560b798b Throw if contract creation fails. 2016-08-16 14:49:44 +02:00
Jacob Benjamin Cholewa
c9a9a4a797 Update index.rst
Added a link for Syntastic. A vim plugin that provide compile checking using the solc compiler.
2016-08-16 13:12:19 +02:00
chriseth
0c2dc34075 Wording: recursive call exploit -> reentrancy exploit 2016-08-16 11:22:24 +02:00
Mircea Moca
ae0654443c Update control-structures.rst
typo -> coherence with previous occurrence in the document of C/JavaScript
2016-08-16 10:45:04 +03:00
Mircea Moca
1c81d2a481 Update control-structures.rst 2016-08-16 10:41:50 +03:00
Denton Liu
0b3ad9262c Fix code 2016-08-12 11:08:53 -04:00
Denton Liu
269a6d1379 Reference inspiration 2016-08-12 11:03:58 -04:00
chriseth
c5203344a0 Merge pull request #886 from mocamircea/patch-6
Update units-and-global-variables.rst
2016-08-12 16:17:13 +02:00
Mircea Moca
6615487266 Update units-and-global-variables.rst
Coherence -> at the bottom of the document Wei is used several times, not "wei".
2016-08-12 16:54:25 +03:00
Mircea Moca
76f5c67dcc Update units-and-global-variables.rst
"Suffixes of" is wrong and misleading. "seconds", "minutes" etc. are suffixes of literal numbers.
2016-08-12 16:33:22 +03:00
chriseth
c389f894b5 Merge pull request #858 from Denton-L/quotes-docs
Document existence of single-quotes
2016-08-12 15:20:02 +02:00
chriseth
0d894a6832 Merge pull request #844 from Denton-L/remove-after
BREAKING: Remove after
2016-08-12 15:09:55 +02:00
Denton Liu
0f1fb33d58 Add minor corrections 2016-08-11 14:34:36 -04:00
chriseth
69e5409bc5 Merge pull request #857 from cholewa1992/patch-1
Update installing-solidity.rst
2016-08-11 18:53:28 +02:00
Denton Liu
1634a79bd8 Correct all UTF-8 spellings 2016-08-11 11:10:47 -04:00
Denton Liu
2a492f59c9 Add double-quotes to style guide 2016-08-11 11:10:47 -04:00
Denton Liu
f2389b3314 Change i.e. to e.g. 2016-08-11 11:10:47 -04:00
Denton Liu
e4f9e1f788 Mention single-quotes 2016-08-11 11:10:47 -04:00
Denton Liu
581114da3e Correct UTF-8 spellings 2016-08-11 11:10:47 -04:00
Denton Liu
058e5f0159 Update contracts and descriptions 2016-08-11 10:45:47 -04:00
Denton Liu
4737100d00 Change withdrawal example
The example is now a "King of the Ether"-esque contract. This is
actually relevant as they suffered an attack because of an almost
identical issue.

See the post-mortem here:
https://www.kingoftheether.com/postmortem.html
2016-08-11 10:35:45 -04:00
Denton Liu
1ff7ba0b06 Remove after keyword from documentation 2016-08-11 10:15:59 -04:00
chriseth
5a3740378f Merge pull request #824 from Denton-L/fix-typo
Fix typo
2016-08-10 21:22:49 +02:00
Denton Liu
666c46ac29 Use store example 2016-08-10 11:11:13 -04:00
Denton Liu
b688d33055 Change example to auction 2016-08-10 10:42:51 -04:00
Denton Liu
a6c9d85399 Remove trailing whitespace 2016-08-10 10:42:51 -04:00
Denton Liu
617daa1f00 Fix withdrawal pattern documentation 2016-08-10 10:40:55 -04:00
Denton Liu
82365f21c0 Link to withdraw pattern 2016-08-10 10:40:55 -04:00