Commit Graph

238 Commits

Author SHA1 Message Date
Erik Kundt
e16e37f507 Updates docs to new constructor syntax. 2018-07-02 16:25:54 +02:00
Leonardo Alt
8862b3092b C99 scoping rules by default 2018-06-20 12:53:38 +02:00
chriseth
6c8f78fb8f Update documentation for multi variable declaration statement. 2018-05-16 03:52:24 +02:00
chriseth
741ada79f9 Update documentation. 2018-05-08 15:32:36 +01:00
Lefteris Karapetsas
8a7224683b
Docs: Update solidity version for revert with reason 2018-04-15 23:12:28 +02:00
chriseth
966367305a Remove dead code and clarify throw. 2018-04-12 20:13:16 +02:00
chriseth
b25598126e Update documentation and minor changes. 2018-04-12 13:09:38 +02:00
chriseth
344a388d44 Update documentation. 2018-04-12 13:09:38 +02:00
chriseth
3da16b3e8a Documentation for revert with reason string. 2018-04-12 13:09:37 +02:00
Kevin Florenzano
d662622b25 Variable assignment wording change 2018-04-05 17:12:48 +09:00
kevinflo
884ea39d85 Removed documentation reference to the now-depricated var tuple variable assignment syntax 2018-04-02 13:57:19 +09:00
chriseth
6391a36a6c Documentation about new scoping rules. 2018-02-27 12:41:32 +01:00
Alexandre Bezroutchko
3804f29a8d fix a typo 2018-02-14 09:49:06 +01:00
Kevin Wu
ddad6a3f80
add clarity to destructuring assignments 2017-12-18 09:55:13 -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
Ezra Epstein
744dea60a4 had "names" when "parameters" was meant 2017-11-22 04:08:35 +00:00
Alex Beregszaszi
23379e1061 Ensure each code snippet in the docs can be extracted for tests 2017-11-22 04:08:35 +00:00
Aaron Colaço
2b88eeb370 Make createAndEndowD payable in contract creation example 2017-09-12 10:07:54 +01:00
Alex Beregszaszi
5a5d21d0c8 Add note about throw being deprecated 2017-08-28 12:04:56 +01:00
Alex Beregszaszi
d1b13c0624 Add warning that low-level call/callcode/delegatecall don't check for existence 2017-08-01 20:51:52 +01:00
Yoichi Hirai
927f01c6d9
Fix grammar 2017-07-26 17:02:06 +02:00
maurelian
9c676e796c Clarify require and assert usage 2017-07-25 20:02:27 -04:00
Alex Beregszaszi
cffe52d6d9 Enable more examples in the documentation for testing 2017-07-19 00:05:05 +01:00
Juraj Bednar
5e0f5ee627 Keep the terminology about the exceptions the same
Don't call exception revert-style when the rest of the document uses require-style
2017-07-18 14:25:17 +02:00
Alex Beregszaszi
41e5b2c3c2 Fix bugs in example contracts 2017-07-13 21:47:29 +02:00
Alex Beregszaszi
b2fcd59ee6 Add version pragma to docs examples 2017-07-13 17:10:37 +02:00
Alex Beregszaszi
784b72bb72 Clarify exception documentation 2017-06-23 19:29:11 +02:00
chriseth
64067975e4 Review suggestions. 2017-06-23 19:29:11 +02:00
chriseth
7f05ef8aca Clarify exceptions. 2017-06-23 19:29:11 +02:00
Alex Beregszaszi
17443f458a Explain that .value() is only available if contract function is marked payable 2017-03-16 12:37:18 +00:00
Alex Beregszaszi
6ece0d6c2f Document the .value() and .gas() modifiers 2017-03-16 12:37:18 +00:00
Alex Beregszaszi
42f2623cd3 Fix list indentation 2017-03-16 00:43:30 +00:00
chriseth
47cd8964b8 Require and Assert. 2017-03-14 14:21:33 +01:00
Yoichi Hirai
cfbbd89daf Merge pull request #1702 from ethereum/assertError
Change effect of assert to invalid opcode.
2017-03-03 18:25:50 +01:00
Alex Beregszaszi
a36e2ce0cb Document transfer() 2017-02-24 00:18:18 +00:00
chriseth
4b1e8111cc Remove assert for now. 2017-02-23 19:43:40 +01:00
chriseth
811bb770c5 Change effect of assert to invalid opcode. 2017-02-16 15:54:17 +01:00
Alex Beregszaszi
28a7b1e019 Document revert() 2017-02-10 22:42:33 +00:00
Alex Beregszaszi
39cd2214f2 Document user provided exceptions 2017-02-10 13:31:40 +00:00
Alex Beregszaszi
ace583d0a1 Rename accessor to getter 2017-02-03 00:17:21 +00:00
chriseth
a39adc44d4 Integrate missed changes. 2017-01-31 23:31:25 +01:00
Alex Beregszaszi
bfa3b4ca78 Mention invalid in docs 2017-01-27 13:26:40 +00:00
chriseth
bff8fc23e6 Changelog and review suggestions. 2017-01-27 10:18:53 +01:00
chriseth
7660736aa2 Document special case of zero-initialized internal function. 2017-01-26 16:40:24 +01:00
Valentin Wüstholz
5b7cc018f0 Address feedback from code review. 2017-01-26 16:39:07 +01:00
chriseth
7e2e1eb94f Merge pull request #1597 from sarbogast/patch-2
Fix the list of reasons for throwing automatically
2017-01-23 09:32:37 +01:00
Sebastien Arbogast
7ecc8e412d Fix the list of reasons for throwing automatically
Used aut-enumerated list syntax
2017-01-20 22:53:45 +01:00
Sebastien Arbogast
0897e7bcec Fixed typo on contract instance
Fixed the name of the variable referencing a contract instance
2017-01-20 21:52:36 +01:00
Michael Coblenz
c163a219de Corrected explanation per discussion. 2016-12-22 10:35:58 -05:00
Michael Coblenz
4b3f147e65 Clarified support for recursive creation. 2016-12-20 13:48:01 -05:00
Michael Coblenz
31564d94b1 Fixed misleading typo
"now possible" should instead read "not possible."
2016-12-19 15:08:18 -05:00
chriseth
cc11739928 Documentation. 2016-12-12 11:12:12 +01:00
Yoichi Hirai
fed50403ff
docs: cleaning references to C; smoothing parameter syntax description 2016-11-25 10:43:05 +01:00
Yoichi Hirai
0599a14954
docs: cross-reference returning multiple values 2016-11-25 10:43:05 +01:00
Yoichi Hirai
936bade46f
doc: add a section about input parameters and output parameters 2016-11-25 10:43:05 +01:00
RJ
cc07a918e3 Typo 2016-11-18 12:34:43 -06:00
Alex Beregszaszi
ae8403ed08 Rename ErrorTag to invalidJumpLabel in inline assembly 2016-11-15 10:30:33 +00:00
Alex Beregszaszi
702ab4cb4f Document inline assembly ErrorTag 2016-11-15 10:30:33 +00:00
Yoichi Hirai
1af3c4f754
docs: document the new overflow exception during conversion into enum 2016-11-11 17:48:03 +01:00
Rhett Aultman
4524ad0870 Add support for do/while loops
This commit adds support for a standard do <statement> while <expr>;
form of statement.  While loops were already being supported; supporting
a do/while loop mostly involves reusing code from while loops but putting
the conditional checking last.
2016-11-10 07:07:25 -08:00
Alex Beregszaszi
76c856397a Minor documentation fixes 2016-10-19 14:02:50 +01:00
Yoichi Hirai
550c92cb2f
Small points on the instruction table
Fixes #1205

`sload` was not marked with a `-`, contrary to the description of #1205
2016-10-13 19:30:43 +02:00
Yoichi Hirai
8b5f0d5997
Accommodate further reviews 2016-10-13 12:44:27 +02:00
Yoichi Hirai
d32160a5b8
Change prenouns from on to at 2016-10-13 12:16:14 +02:00
Yoichi Hirai
ff0f44352e
Accommodating reviews
https://github.com/ethereum/solidity/pull/1167#pullrequestreview-4031601
2016-10-13 12:12:40 +02:00
Yoichi Hirai
f492380688 Mention payable in the description when Solidity throws 2016-10-12 10:59:22 +02:00
Yoichi Hirai
246d91438f Codify bytes 2016-10-12 10:46:55 +02:00
Yoichi Hirai
32c3bd8e78 Change phrasing around too small index 2016-10-12 09:39:43 +02:00
Yoichi Hirai
d6394c46a1 Merge two similar sections; the original survives 2016-10-12 09:35:05 +02:00
chriseth
057db59844 Review suggestions. 2016-09-07 12:20:35 +02:00
chriseth
4f5a95d569 Update documentation to version 0.4.0. 2016-09-06 19:11:41 +02:00
chriseth
453490cb61 Merge pull request #1003 from winsvega/docs
add "pragma solidity ^0.4.0;" to code examples
2016-09-06 15:59:49 +02:00
Alex Beregszaszi
a6c35c08f5 Fix the return value of call in inline assembly 2016-09-06 11:19:46 +01:00
Dimitry
183cd70c47 add "pragma solidity ^0.4.0;" to code examples 2016-09-05 14:54:54 +03:00
Denton Liu
532266b89e Use new style for the docs 2016-08-26 13:33:42 -04:00
Denton Liu
ef117c2902 Fix creating contracts section 2016-08-24 11:43:56 -04:00
Denton Liu
2716d01f2c Rename "call data" to "calldata" 2016-08-24 11:43:56 -04:00
Denton Liu
41ad2110c2 Fix control-structures 2016-08-24 11:43:56 -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
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
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
a63f94e042 Fix docs. (#916) 2016-08-17 11:04:40 +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
Mircea Moca
d24c431ce5 Update control-structures.rst 2016-08-16 16:06:08 +03:00
chriseth
2a560b798b Throw if contract creation fails. 2016-08-16 14:49:44 +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
f2389b3314 Change i.e. to e.g. 2016-08-11 11:10:47 -04:00
Denton Liu
279518a536 Add missing s 2016-08-08 13:33:09 -04:00
Denton Liu
838a91b38c Refix typo 2016-08-08 13:32:54 -04:00
Denton Liu
2204c597fb Fix typo 2016-08-05 11:59:10 -04:00
Denton Liu
7a20324142 Link to order of precedence table 2016-07-28 15:19:04 -04:00
Denton Liu
5d113600aa Fix typos 2016-07-12 17:06:49 -04:00
chriseth
efad1e05ac Merge pull request #680 from Denton-L/fix-679
Add section about default values of variables
2016-07-08 20:15:28 +02:00
Denton Liu
cf0579a86e Incorporate changes 2016-07-08 14:07:58 -04:00
Denton Liu
06fa66b2e6 Mention dangers of polymorphism 2016-07-07 16:34:05 -04:00
Denton Liu
ab3531ffc3 Incorporate corrections 2016-07-07 13:53:57 -04:00
Denton Liu
70e5af11ef Correct grammar and language 2016-07-05 11:55:09 -04:00
Denton Liu
14f57568dc Apply fixes 2016-07-05 11:44:39 -04:00
Denton Liu
cb5fc23014 Fix incorrect directives 2016-07-04 10:51:02 -04:00
chriseth
2df142c496 Security Considerations 2016-07-04 15:27:53 +02:00
Denton Liu
0db67b8895 Add section about default values of variables 2016-06-22 13:35:15 -04:00
Denton Liu
49f5bc7ce9 Changed inline code syntax
Changed from :code:`<inline>` to ``<inline>``
2016-05-30 09:44:33 -04:00
Denton Liu
80600a5a42 Modified control-structures.rst
Changed inline code syntax
2016-05-30 09:42:30 -04:00
Dave Hoover
ae677c1e31 Typo fix 2016-05-20 09:18:03 -05:00
Denton Liu
c851cd0481 Corrected capitalisation of symbol names 2016-05-18 17:17:05 -04:00
Denton Liu
d152923548 Fixed a badly resolved merge conflict 2016-05-18 15:53:14 -04:00
Denton Liu
7c22a387f3 Changed whitespace formatting 2016-05-18 11:35:32 -04:00
Denton Liu
d70ae38e92 Fixed table formatting 2016-05-18 11:23:48 -04:00
Denton Liu
51fe1bd9c2 Replaced tabs with spaces 2016-05-18 11:23:48 -04:00
Denton Liu
d6f05a6d36 Increased clarity of assembly statement 2016-05-18 11:23:48 -04:00
Denton Liu
14bd009eb6 Corrected spacing to four spaces 2016-05-18 11:23:47 -04:00
Denton Liu
bdb48b8567 Removed trailing space 2016-05-18 11:23:47 -04:00
chriseth
775b757d0e Merge pull request #545 from chriseth/accessFunLabels
Allow access to functions in inline assembly.
2016-05-17 23:59:13 +02:00
chriseth
e28604f0b0 Typo 2016-05-17 17:05:03 +02:00
chriseth
4b445b898e Merge pull request #546 from chriseth/fixiszero
Correctly use not/bnot/iszero.
2016-05-14 00:58:55 +02:00
Denton Liu
20cec07b46 Removed unnecessary period 2016-05-12 13:25:00 -04:00
Denton Liu
7b6fd013a4 Added origin of scoping rules 2016-05-12 09:59:29 -04:00
Denton Liu
50eb3b8f8f Moved comment to more logical place 2016-05-12 09:49:49 -04:00
Denton Liu
e60a17379e Removed trailing spaces 2016-05-12 09:48:56 -04:00
chriseth
67ca3bb4b9 Allow access to functions in inline assembly. 2016-05-12 12:30:48 +02:00
Denton Liu
52a8d7b3f5 Added content 2016-05-11 17:07:25 -04:00
Denton Liu
08b7d4aebe Changed the title 2016-05-11 17:02:28 -04:00
Denton Liu
ef56723060 Created scoping section 2016-05-11 15:47:05 -04:00
chriseth
a927efb151 Correctly use not/bnot/iszero.
A long time ago, some opcodes were renamed. Now we should only have
not (bitwise negation) and iszero (logical negation).
2016-05-09 10:52:23 +02:00
chriseth
bbfc580423 Typos in inline assembly documentation. 2016-03-30 18:32:39 +02:00
chriseth
b336f6261c Documentation. 2016-03-30 10:08:09 +02:00
chriseth
d0bb87ae88 Documentation for delegatecall. 2016-03-11 17:49:59 +01:00
holgerd77
acee4b7040 Added in-depth links for further reading to the state variable, function and function modifier overview in the structure section 2016-02-19 11:30:00 +01:00
Lu Guanqun
41039705ac [cond-expr] add one doc about conditional expression 2016-01-22 17:14:01 +00:00
Lu Guanqun
e213d7f25b [docs]: change unsupported underscore to start
highlight "not"
2015-12-30 13:46:05 +08:00
chriseth
64fa9ca478 Imported documentation. 2015-12-07 22:35:51 +01:00