Commit Graph

2466 Commits

Author SHA1 Message Date
Alex Beregszaszi
047561f4ec Update enum with lifting the restriction for interfaces 2018-08-07 22:04:21 +01:00
chriseth
5d5626e6d7 Clarify allocation and initial value of free memoy pointer. 2018-08-07 13:37:06 +02:00
Luke Schoen
835c05cb3a Update style guide with regards to CapWords requirement for contract and file naming. 2018-08-06 18:23:58 +02:00
chriseth
7c9bfb62f9
Merge pull request #4498 from ethereum/faq-reorg-intro
Move intro related FAQ points
2018-08-06 17:59:37 +02:00
Chris Ward
e295e1fcbd Move intro related FAQ points
Changes from feedback

Changes from review
2018-08-06 17:55:35 +02:00
chriseth
40fbe9b86e
Remove initial sentence. 2018-08-06 15:52:11 +02:00
chriseth
20c65f9af1
Merge pull request #4616 from ethereum/1093-interface-generator
Add interface generator to tools section
2018-08-03 21:15:14 +02:00
Christian Parpart
a4ee1dfc83
Merge pull request #4412 from ethereum/v050-reference-resolver-errorTypeForLoose
[BREAKING] permanently set errorTypeForLoose from Warning to SyntaxError
2018-08-03 19:30:33 +02:00
Chris Ward
22a2f5dd1d Clarify truncation with addresses 2018-08-03 14:09:42 +01:00
Christian Parpart
ed3cb327ea Remove loose assembly features from the documentation 2018-08-02 13:36:48 +01:00
chriseth
68f9128475
Merge pull request #4584 from dylanjw/update-abi-event-doc
Update doc referencing packed mode encoding for dynamic typed topic args
2018-08-02 14:27:38 +02:00
Alex Beregszaszi
cbcdc9dc42 Point the documentation to the new Code of Conduct URL 2018-08-01 22:42:16 +01:00
Alex Beregszaszi
a78565e44f
Merge pull request #4508 from ethereum/nameCollisionCrash
[BREAKING] Don't exclude public state variables when looking for conflicting declarations.
2018-08-01 20:53:56 +01:00
Alex Beregszaszi
1f832e068b
Merge pull request #4639 from ethereum/docs-fix-specify-limit
Small clarifications around the 2300 gas stipend from transfer and send
2018-08-01 16:23:06 +01:00
Chris Ward
0ad646635f Small clarifications around the 2300 gas stipend from transfer and send 2018-08-01 16:21:29 +01:00
Daniel Kirchner
cea46acef7 Update documentation. 2018-08-01 17:18:17 +02:00
Chris Ward
3c919766e8 Changes after rebasing 2018-08-01 14:22:09 +02:00
Chris Ward
a6cb6777c9 Add contract type to types doc 2018-08-01 12:21:47 +01:00
chriseth
b800bfb021 Fix tests regarding contract type conversion. 2018-08-01 11:04:35 +01:00
chriseth
c8232d9759 Disallow conversion between unrelated contract types. 2018-08-01 11:04:35 +01:00
Alex Beregszaszi
9436fd9363 grammar: remove stray IdentifierList rule
This was left in #4274 (dbd0723)
2018-07-31 00:28:01 +01:00
chriseth
bc13365a7b
Merge pull request #4569 from ethereum/grammar-assembly
Update grammar.txt for inline assembly
2018-07-30 16:54:59 +02:00
Chris Ward
6c3a2f8e9b Clarify what ‘memory type’ is
Use RST links
2018-07-30 15:48:06 +02:00
Chris Ward
f4ae002dab Add interface generator to tools section 2018-07-30 10:08:51 +02:00
Dylan Wilson
d6d1a41286
Update doc referencing packed mode encoding for dynamic typed topic args 2018-07-25 15:28:53 -07:00
Alex Beregszaszi
61a8b098e6 Mention that constant and payable are deprecated in the ABI spec 2018-07-25 11:23:44 +01:00
Alex Beregszaszi
76bc04244a Clarify relation between stateMutability and payable/constant 2018-07-25 11:23:41 +01:00
Alex Beregszaszi
582ab4eab4 grammar: rename AssemblyLocalBinding to AssemblyVariableDeclaration 2018-07-25 00:08:42 +01:00
Alex Beregszaszi
258e8caa59 grammar: introduce AssemblyExpression and use it in Assignment/LocalBinding 2018-07-25 00:08:08 +01:00
Alex Beregszaszi
ed4022fbca grammar: support all assignment stataments in inline assembly 2018-07-25 00:05:19 +01:00
Alex Beregszaszi
79ddcc7680
Merge pull request #4453 from ethereum/codeOfConduct
Add Code Of Conduct
2018-07-23 17:00:02 +01:00
Erik Kundt
1e69896cd6 Adds Code Of Conduct. 2018-07-23 17:52:59 +02:00
chriseth
9697b5886e
Merge pull request #4520 from ethereum/faq-reorg-index-tools
Move note on decompiling
2018-07-20 13:44:12 +02:00
Chris Ward
14ea11fad0 Fix typo 2018-07-20 10:45:04 +02:00
Chris Ward
1aff040799 Move note on decompiling 2018-07-18 14:28:58 +02:00
Alex Beregszaszi
8cc675150e
Merge pull request #4345 from ethereum/docs-tests
Document the required cpp-ethereum commit hash
2018-07-18 13:18:31 +01:00
Alex Beregszaszi
4bd22399da Keep the proper aleth hash in contributing.rst 2018-07-18 10:20:18 +02:00
Alex Beregszaszi
f351eb1b3c Document the required cpp-ethereum commit hash 2018-07-18 10:20:08 +02:00
Erik Kundt
b5ecfbe5bc Enforces visibility specifier and updates docs. 2018-07-17 17:44:51 +02:00
Nicolás Venturo
3bf8fb741e
Minor doc style fix
An extra newline caused a line to appear in bold.
2018-07-16 14:26:05 -03:00
chriseth
931794001e
Merge pull request #4500 from ethereum/v050-interface-functions-must-be-external
[BREAKING] interface functions must be external
2018-07-16 14:43:56 +02:00
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
chriseth
1a1cff189b
Merge pull request #4505 from nventuro/patch-1
Update docs allowed mapping key values
2018-07-16 13:50:31 +02:00
Christian Parpart
396bf11858 enforce interface-functions to be external-declared
- libsolidity: Enforce interface-functions must be external-declared.
- Changelog adapted to reflect changes wrt. functions in interfaces.
- test: Adjustments according to prior interface-function changes.
- tests: Adapting SolidityEndToEndTest to interface-function change.
- docs: Adapted documentation to interface-function change.
2018-07-16 12:15:36 +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
chriseth
31e56f9f99
Merge pull request #4438 from ethereum/address_members_external_tests_docs
Address members used by contracts: update external tests and docs
2018-07-13 01:28:29 +02:00
chriseth
052f19c6b0
Merge pull request #4431 from ethereum/tupleDeclaration
Disallow multi variable declarations with mismatching number of values.
2018-07-13 01:23:28 +02:00
Nicolás Venturo
e3339a9684
Update docs allowed mapping key values
Functions cannot be used as mapping keys (e.g. the following contract does not compile):

```
pragma solidity ^0.4.24;

contract Foo {
  mapping(function (uint) pure returns (uint) => string) a;
}
```
2018-07-12 19:58:06 -03:00
Eric Ren
39031e1a96 removed addtional solc in docker command 2018-07-12 15:19:41 -07:00
Daniel Kirchner
6f383e1626 Update documentation. 2018-07-12 20:33:51 +02:00
Nicolás Venturo
910fa3cd7c
Removed repeated documentation
There is already a paragraph below describing how to call functions in both their internal and external forms (and IMO it's clearer).
2018-07-12 15:25:42 -03:00
chriseth
81271801b4
Merge pull request #4478 from ethereum/requireStorageLocation
Turn missing storage locations into an error.
2018-07-12 18:00:05 +02:00
Daniel Kirchner
df8bbffd8e Update docs. 2018-07-12 12:54:42 +02:00
Leonardo Alt
3ebfcae829 Update external tests and docs 2018-07-12 12:53:49 +02:00
Leonardo Alt
38026d3114 Use STATICCALL for view and pure 2018-07-11 14:45:22 +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
7650905567
Merge pull request #4415 from ethereum/uninitializedStoragePointer
[BREAKING] Turn uninitialized storage variables into error.
2018-07-10 15:24:01 +02:00
chriseth
d9c3b10b1c
Merge pull request #4465 from ethereum/tupleAssignment
Disallow tuple assignment with mismatching number of components.
2018-07-10 15:18:00 +02:00
Daniel Kirchner
951b745bd9 Update docs. 2018-07-10 13:27:48 +02:00
Alex Beregszaszi
5c404fcfac
Merge pull request #4460 from ethereum/docs-contract-abi
Rename ABI to Contract ABI
2018-07-10 11:04:10 +01:00
Daniel Kirchner
65631cffc2 Update documentation and Changelog. 2018-07-10 11:38:33 +02:00
Alex Beregszaszi
314fefbc05 Rename ABI to Contract ABI
It has been called as the "Contract ABI" on the original wiki page too and it seems to make more sense.
2018-07-09 23:48:44 +01:00
chriseth
15283e8535 Some copy-editing. 2018-07-10 00:45:00 +02:00
Alex Beregszaszi
8dc7609257
Merge pull request #4395 from xinbenlv/patch-1
Indicating abbr.
2018-07-09 13:28:27 +02:00
xinbenlv
1e7d44d31c Indicate what the abbreviation ABI stands for in the ABI documentation 2018-07-09 12:24:54 +01:00
Alex Beregszaszi
5bd2229247
Merge pull request #4433 from mattaereal/patch-2
Docs: Missing new line for markdown to display properly
2018-07-09 13:23:58 +02:00
Leo Arias
4fb1fa02ea Add missing periods to opcodes table in assembly.rst
The table is inconsistent between `..` and `...`. This updates all the explanations to use `...`.
2018-07-09 11:31:43 +01:00
Alex Beregszaszi
127eaab312 Add strict encoding mode to the ABI spec 2018-07-05 18:22:37 +02:00
Matías A. Ré Medina
de78c816b5
Docs: Missing new line for markdown to display properly
Somehow on the last PR I sent about this section a newline disappeared, I added it again.
2018-07-04 20:23:14 -03:00
chriseth
7101a89056
Merge pull request #4380 from elopio/patch-3
Update examples to use constructor keyword
2018-07-04 14:16:46 +02:00
Daniel Kirchner
d9a8f2aace Update documentation and Changelog. 2018-07-04 10:14:58 +02:00
Leo Arias
8fdf3f5d45 update the style guide 2018-07-04 04:29:00 +00:00
chriseth
16f8c23aa0
Merge pull request #4367 from shad-k/fix/issue-4238
Add custom.css for docs to change pre tag styles
2018-07-03 22:40:51 +02:00
Shadab Khan
a673785326 Add custom.css for docs to change pre tag styles
Specify white space for table cells

Add custom.css for docs to change pre tag styles

Specify white space for table cells

Rearrange code

Delete theme_overrides.css

Remove extra code
2018-07-04 00:08:59 +05:30
Daniel Kirchner
f7153ee58a Update documentation. 2018-07-03 15:31:34 +02:00
Christian Parpart
dbd0723a6d grammar: removes the var-keyword from the grammar 2018-07-03 10:53:09 +02:00
Christian Parpart
133fbdbf18 documentation: adjustments to not use the "var" keyword 2018-07-03 10:53:09 +02:00
Erik Kundt
f74a9a346b Fixes semantic versioning. 2018-07-02 17:02:17 +02:00
Erik Kundt
2031e8e0c1 Adds review suggestions. 2018-07-02 16:46:54 +02:00
Erik Kundt
e16e37f507 Updates docs to new constructor syntax. 2018-07-02 16:25:54 +02:00
Mike
2a9d54af58 Clarify scope of 'using A for B' (#4252)
* Issue 1213: Clarify scope of 'using A for B'

* Typo fix.

* Further restructuring and clarification of contracts doc.

* Revert closer to original wording and formatting.
2018-06-29 12:21:39 +02:00
chriseth
c9cab80389
Merge pull request #4375 from ethereum/fallbackExternalBackwardsCompatible
Fallback function has to be external: backwards-compatible changes.
2018-06-29 09:19:24 +02:00
chriseth
eeef82b2d7 Fallback function has to be external: backwards-compatible changes. 2018-06-29 00:23:52 +02:00
wpank
3cc780de33 Added static CSS to Sphinx in order to fix bug with RTD theme table wrapping 2018-06-27 12:01:48 -07:00
chriseth
4a842ecc82
Merge pull request #4097 from ethereum/noPackedExceptForPacked
[BREAKING] call only takes a single argument and does not pad
2018-06-27 18:29:01 +02:00
Alex Beregszaszi
ce4b233f8f
Merge pull request #4360 from mattaereal/doc_patches-1
Docs: Adding AFL's alternative configuration with clang.
2018-06-27 17:56:51 +02:00
Matías Aereal Aeón
638ac15956 Adding AFL's alternative configuration with clang. 2018-06-27 11:02:27 -03:00
chriseth
b55d9aacff Add emit keyword to documentation. 2018-06-27 10:38:59 +02:00
Alex Beregszaszi
44f2cfb5ca Clarify that using msize without updating the free-memory-pointer is a bad idea 2018-06-26 02:23:02 +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
Alex Beregszaszi
72e87423db Disallow the years unit denomination properly 2018-06-21 20:21:02 +02:00
chriseth
3e9b4383cc
Merge pull request #4200 from biboran/3961
#3961 - added an example of two-dimensional array encoding
2018-06-21 14:09:53 +02:00
Leonardo Alt
8862b3092b C99 scoping rules by default 2018-06-20 12:53:38 +02:00
chriseth
3eebba1087 Clarify documentation about events (mostly topics). 2018-06-19 19:53:02 +02:00
Nicolás Venturo
1edd2fa165 Add a changelog notice to the contributing doc 2018-06-19 11:04:18 -03:00
Timofey Solonin
6553b1114b #3961 - added a more detailed description to the calculation of offsets 2018-06-17 21:20:11 +03:00
a4nkit
f79efb8dbf fix typo 2018-06-13 12:50:32 +05:30
Alex Beregszaszi
d1e7e9ef5e
Merge pull request #3627 from ethereum/additional-keywords
[BREAKING] Add new reserved keywords.
2018-06-12 16:33:26 +01:00
Daniel Kirchner
e4b7b2160e Add new reserved keywords. 2018-06-12 16:02:53 +02:00
Alex Beregszaszi
56a965ea96
Merge pull request #4232 from ethereum/renameiulia
Rename iulia to yul in documentation.
2018-06-12 10:07:56 +01:00
chriseth
abfec6829d Rename julia/iulia to yul in documentation. 2018-06-12 10:00:00 +01:00
Daniel Kirchner
f33dc92cbd Use proper SAR for signed right shifts and emulate on pre-constantinople. 2018-06-12 09:32:19 +01: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
Harry Moreno
20a5a9b15f
Update Event emit docs pragma
Event's `emit` usage was introduced in 0.4.21+
2018-06-07 15:07:07 -04:00
feliam
765241a154
Update abi-spec.rst
An infinite number of items in the sequence of types? ??
A negative number of type in the sequence ??
2018-06-06 18:40:26 -03:00
taitt
480e73d92e doc: put the index at the bottom 2018-06-06 17:02:38 +07:00
chriseth
7422cd737d
Merge pull request #4227 from elopio/patch-1
docs: fix typo
2018-06-05 19:27:58 +02:00
Leo Arias
8ce5707a42
docs: fix code annotation 2018-06-04 23:48:25 -06:00
Leo Arias
058e01e44b
docs: fix typo 2018-06-04 23:44:46 -06:00
chriseth
c2e4c4651a
Merge pull request #4216 from kronosapiens/patch-2
Update function visibility example
2018-06-04 19:33:54 +02:00
chriseth
d004948929
Merge pull request #4201 from wjmelements/bytes-complex-type
move bytes and string to arrays section
2018-06-04 19:02:00 +02:00
Daniel Kronovet
1a603625d4
Denote getData as view 2018-06-04 15:00:55 +03:00
Jason Cobb
acd8706309 Remove documentation references to sha3 2018-06-04 01:05:01 +01: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
Daniel Kronovet
a217cd05c9
Fix typo 2018-06-03 15:36:54 +03:00
Daniel Kronovet
0d4adc44c9
Update function visibility example
Two functions don't access state and should be `pure`. Also, inconsistent spacing when using arithmetic.
2018-06-03 12:25:52 +03:00
Timofey Solonin
0d25ba1649 #3961 - rewritten encoding example in a logical order instead of a sequential order 2018-06-02 19:04:37 +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
William Morriss
78b8baede7 keep stub in value types section, and move discussion to Arrays section 2018-05-30 10:34:01 -07:00
chriseth
5a73044fa7
Merge pull request #3743 from ethereum/popStorageArray
pop() for storage arrays
2018-05-30 18:32:08 +02:00
Erik Kundt
98d52beba3 Adds syntax tests, documentation and changelog entry.
Refines comment for array utility function.
2018-05-30 17:43:20 +02:00
chriseth
41965ca262
Merge pull request #4176 from sifmelcara/add/calldata-keyword
Add a new keyword, "calldata", to allow explicitly specify data location in external function's argument list
2018-05-30 14:42:50 +02:00
mingchuan
b7cafcbdf9
Allow using calldata keyword to specify data location 2018-05-30 18:05:55 +08:00
William Morriss
648bb484ac consistency: unordered list for restrictions 2018-05-29 16:56:45 -07:00
William Morriss
7bc36204d3 move bytes and string to complex types section 2018-05-29 16:31:26 -07:00
Timofey Solonin
32443f5705 #3961 - added an example of abi encoding of a function with two-dimensional dynamic arrays 2018-05-29 13:18:23 +03:00
Arindam Mondal
5187c66a25 Fix bug in documentation. 2018-05-28 23:37:47 +02:00
chriseth
8de26058c4
Merge pull request #4192 from vutsalsinghal/patch-1
CapsCase instead of camelCase
2018-05-28 22:07:07 +02:00
chriseth
b686fbbb32
Merge pull request #4180 from veox/use-pip-solidity-lexer
docs: Use Solidity lexer from PyPI, instead of a local module
2018-05-28 17:41:35 +02:00
chriseth
d2fb7a2a44
Merge pull request #4195 from jvmaia/patch-2
clarify warnings in contracts.rst
2018-05-28 16:13:25 +02:00
chriseth
c71e5f8e94
Merge pull request #4196 from dilatebrave/issue1210
doc: making the index appear on the left pane
2018-05-28 12:54:54 +02:00
taitt
08342f6d83 doc: making the index appear on the left pane 2018-05-28 10:54:34 +07:00
João Vítor
899bd5f39a
clarify warnings in contracts.rst
closes #4117
2018-05-27 21:58:58 -03:00
ritzdorf
fb08030a07
Array Length mistankingly taken as Offset
The array length was directly taken as an offset without the necessary multiplication with `0x20`.
2018-05-28 02:25:13 +02:00
Vutsal Singhal
2fa692a70a
CapsCase instead of camelCase 2018-05-26 15:37:52 -04:00
Noel Maersk
ad975a6f8c docs: bump Solidity lexer package to v0.3.1.
That release includes stricter matching of "nested" globals, i.e.
it highlights `msg.sender` but not `sender`.
2018-05-24 14:58:30 +03:00
Noel Maersk
3678450549 docs: change default theme to RTD's.
RTD probably has their `default` theme set to their own `rtd` theme,
while CircleCI has some regular default Sphinx theme.

This changes the Sphinx project configuration to use `rtd` as the
theme.
2018-05-24 14:21:19 +03:00
Noel Maersk
4004fa8c98 docs: bump required Solidity lexer package version.
pygments-lexer-solidity 0.3.0 highlights NatSpec specials like
@author, @title, etc..
2018-05-24 14:18:07 +03:00
chriseth
5ee2ce353e
Merge pull request #4067 from ethereum/050
[BREAKING] Version 0.5.0
2018-05-23 18:11:20 +02:00
Noel Maersk
6b64dc0110 docs: remove utils/SolidityLexer.py
Note that some features present in this local module have not been
included in the upstream package yet!..
2018-05-23 16:56:51 +03:00
Noel Maersk
7acf5d5244 docs: use SolidityLexer from pygments_lexer_solidity package. 2018-05-23 16:56:51 +03:00
Flash Sheridan
ef1464a13c
Minor changes to make the English more idiomatic 2018-05-22 17:31:05 -04:00
Daniel Kirchner
f5a49f679a Adjust tests. 2018-05-16 18:32:47 +02:00
Daniel Kirchner
5c59d56335 Disallow conversions between bytesX and uintY of different size. 2018-05-16 18:32:47 +02:00
chriseth
80d688ace0 Split changelog into language and compiler features and set release date. 2018-05-16 10:34:15 +02:00
chriseth
54839fdffb
Merge pull request #4101 from mesqueeb/patch-2
Extra line of explanation on Abstract contracts.
2018-05-16 10:21:33 +02:00
Luca Ban
e670004b1f
fixed capitalisation and contractions 2018-05-16 17:03:53 +09:00
chriseth
c9879a6b2b
Merge pull request #4144 from ethereum/julia-docs-fix
Fix formatting in Julia chapter
2018-05-16 09:43:21 +02:00
chriseth
6c8f78fb8f Update documentation for multi variable declaration statement. 2018-05-16 03:52:24 +02:00
Alex Beregszaszi
9748c7ad3f Fix formatting in Julia chapter 2018-05-16 02:11:27 +02:00
chriseth
20d67c0fce Add requirements.txt for readthedocs. 2018-05-14 22:17:27 +02:00
chriseth
2f4faef606 Do not depend on where build is run. 2018-05-14 21:59:35 +02:00
chriseth
8f17f7219a
Merge pull request #3238 from ethereum/julia-specs
Add logic builtins to Julia and update type conversion prototypes
2018-05-14 20:43:16 +02:00
chriseth
ab63ab1cbb
Merge pull request #4093 from ethereum/prepareDropConstantKeyword
Prepare drop constant keyword.
2018-05-14 12:47:07 +02:00
chriseth
6191bef76a Less-fewer-correction. 2018-05-09 18:04:57 +02:00
Alex Beregszaszi
f753dda337 Describe rule for type conversion functions in Julia 2018-05-09 17:04:11 +02:00
Alex Beregszaszi
af0d73f77d Remove stop() as it is the same as return(0,0) in Julia sepcs 2018-05-09 17:04:11 +02:00
Alex Beregszaszi
63c81bc0d4 Add logic builtins to Julia and fix some typos 2018-05-09 17:04:11 +02:00
Daniel Kirchner
1a014f83cc Prefer view over constant in the documentation. 2018-05-09 15:06:47 +02:00
Luca Ban
bb7a393756
Extra line of explanation on Abstract contracts.
And why they're useful.
2018-05-09 19:28:55 +09:00
chriseth
1e95335589
Merge pull request #4074 from elopio/docs/implicit-constructor
docs: document the implicit call of base constructor without arguments
2018-05-09 11:08:34 +02:00
chriseth
aeb6a33957
Merge pull request #4082 from androlo/develop
change assert and require docs
2018-05-09 11:07:00 +02:00
Leo Arias
114a0cf953 document that all the base constructors are called 2018-05-08 17:26:37 +00:00
chriseth
741ada79f9 Update documentation. 2018-05-08 15:32:36 +01:00
Andreas Olofsson
2f44aa4072
change assert and require docs 2018-05-07 11:44:37 +02:00
Leo Arias
a9f2936f27 docs: update the explanation of constructor 2018-05-05 21:45:14 +00:00
Leo Arias
4259c0d036 docs: document the implicit call of base constructor without arguments 2018-05-05 21:41:47 +00:00
chriseth
29572bdc48 Clarify components of X 2018-05-04 15:44:45 +02:00
nisdas
7db4166f77 Fixed typos in abi-spec documentation 2018-05-04 15:41:23 +02:00
chriseth
5738f93704
Merge pull request #4041 from kylewu/3764-vs-2017
Update windows build docs
2018-05-03 08:50:53 +02:00
Alex Beregszaszi
72c3b3a242
Merge pull request #4046 from ethereum/deprecateYears
State that years has been deprecated.
2018-05-03 04:18:09 +01:00
GuessWho
4d550e2c66 vs 2017 in install doc 2018-05-02 17:39:54 +02:00
Jonny Burger
1367fedfd0 Improve documentation and CLI help for --run parameter 2018-05-02 17:10:30 +02:00
chriseth
a1a7653c70 State that years has been deprecated. 2018-05-02 16:24:19 +02:00
chriseth
451e8edb1a
Merge pull request #3992 from davesque/improve-abi-spec
A couple of ABI spec improvements
2018-05-02 15:50:10 +02:00
Alex Beregszaszi
5cce2e552b
Merge pull request #4026 from ethereum/prepareyul
Remove desugaring
2018-04-30 18:51:23 +01:00
chriseth
e27669811d Remove desugaring 2018-04-30 19:18:06 +02:00
Alex Beregszaszi
52cc416a3f
Merge pull request #4001 from Magicking/fix_docs_date
docs: Update configuration from 2017 to 2018
2018-04-30 16:17:51 +01:00
chriseth
eb9dd24e50
Merge pull request #3975 from sledrho/develop
Updated StateVariable Grammar rule #3974
2018-04-30 17:12:35 +02:00
chriseth
ede6ee8776
Merge pull request #4023 from ethereum/exampledocs
Update some examples to remove warnings.
2018-04-30 16:58:24 +02:00
chriseth
65d8e5446c Update some examples to remove warnings. 2018-04-30 16:21:55 +02:00
chriseth
8782508e0b Update documentation about C3 linearization. 2018-04-30 16:15:41 +02:00
Magicking
f28b6e55f1
docs: Update configuration from 2017 to 2018 2018-04-27 08:31:27 +02:00
chriseth
ef2111a2fe
Merge pull request #3994 from rafialhamd/rafialhamd-documentation
Update Enum Type definition.
2018-04-26 10:20:09 +02:00
Rafiudeen Chozhan Kumarasamy
890a0a07a6
Update Enum Type definition.
It's better to say that, Enums contain finite set of 'constant values', instead of finite set of 'values'.
2018-04-25 21:32:50 +04:00
David Sanders
d72624ecb9
Make index notation more consistent 2018-04-24 18:17:44 -06:00
David Sanders
287ec8addb
Add note about zero-tuples 2018-04-24 17:55:39 -06:00
Leo Arias
aff19a1009
docs: clarify the maximum line length style 2018-04-24 10:27:35 -06:00
sledrho
0da8f1e1e4 Updated StateVariableGrammar rule #3974 2018-04-23 10:04:43 +01:00
Matthew Ludwig
cf347745bd Updated constructors and pragma solidity lines.
Updated the Inheritance section of the docs in order to correct old constructor formats and update them to the new constructor() format.
2018-04-20 16:50:00 -04:00
chriseth
a79c9a1dfe Prepare 0.4.23 release. 2018-04-19 17:21:34 +02:00
chriseth
3710fb59f0 Update security considerations. 2018-04-17 12:04:36 +02:00
chriseth
af18b4deb8
Merge pull request #3885 from LefterisJP/update_solidity_version_where_revert_with_reason
Docs: Update solidity version for revert with reason
2018-04-16 19:55:56 +02:00
chriseth
8be4cba570
Merge pull request #3865 from ethereum/updateConstructorVersionPragmas
[MERGE WITH RELEASE 0.4.22] Update version pragmas in constructor documentation.
2018-04-16 19:55:34 +02:00
chriseth
936832b3f9 Preparation for 0.4.22 release. 2018-04-16 19:51:49 +02:00
chriseth
a9c16b8c39 Add documentation. 2018-04-16 12:47:38 +02:00
chriseth
d8030c9b2a
Merge pull request #3880 from ethereum/addressMemberDocAndWarn
Improve documentation and warning about accessing contract members in…
2018-04-16 11:05:05 +02:00
Lefteris Karapetsas
8a7224683b
Docs: Update solidity version for revert with reason 2018-04-15 23:12:28 +02:00
chriseth
559fa58ddf Document ABI encoding functions. 2018-04-13 18:36:33 +02:00
Daniel Kirchner
05c5ab19fb Improve documentation and warning about accessing contract members inherited from address. 2018-04-13 18:26:24 +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
Daniel Kirchner
2192e4035a Update version pragmas from >0.4.21 to ^0.4.22. 2018-04-12 10:43:00 +02:00
chriseth
0546a36aca
Merge pull request #3836 from netrunnerX/develop
Update solidity-by-example.rst.
2018-04-10 11:48:29 +02:00
NetX
089c295641 Update solidity-by-example.rst 2018-04-09 16:57:38 +02:00
Federico Bond
4e037281ac Error on duplicated super constructor calls 2018-04-09 11:22:35 +02:00
Robbie Ferguson
49567b3f4c Update Delegatecall Description in Docs
The previous description did not include the fact that the storage locations of the two contracts must align up until the storage variable(s) affected in order for the called contract to successfully write to the caller's storage. If they are misaligned, delegatecall will silently fail. This is difficult to debug without underlying knowledge of how delegatecall works, and clarity in the docs would certainly be helpful.
2018-04-06 16:38:59 +02:00
chriseth
d74b71a554
Merge pull request #3805 from kevinflo/tuple-documentation-var-removal
Removed documentation reference to var for tuple variable assignment
2018-04-05 16:19:16 +02:00
chriseth
251e4cff58 Document use of AFL. 2018-04-05 14:39:55 +02:00
Kevin Florenzano
d662622b25 Variable assignment wording change 2018-04-05 17:12:48 +09:00
chriseth
7cf09941bb
Merge pull request #3657 from ethereum/codingStyle
Use coding style.
2018-04-05 10:09:53 +02:00
chriseth
0f7e18780f
Clarify code state of contracts under construction. 2018-04-04 15:07:29 +02:00
chriseth
0cbe55005d Create empty dynamic memory arrays more efficiently. 2018-04-04 12:37:04 +02:00
Roman
86c5d6aaad
hash256 -> bytes32 fix in misleading note
As it was described here: https://ethereum.stackexchange.com/questions/44628/understanding-low-level-interface-to-logs/44629?noredirect=1#comment52316_44629
2018-04-04 09:02:58 +03:00
Daniel Kirchner
3ae326139a Document absence of constructors. 2018-04-03 18:21:55 +02:00
Daniel Kirchner
f855c78a08 Update version pragma and use new constructor syntax in std/ contracts. 2018-04-03 18:21:55 +02:00
bitshift
07c74ef924 Updates docs to new constructor syntax. 2018-04-03 18:21:55 +02:00
chriseth
d21382157c
Merge pull request #3801 from meowingtwurtle/preFixedPoint
Set default fixed point decimal places to 18
2018-04-03 11:10:55 +02:00
chriseth
3d0b99731f
Merge pull request #3803 from ethereum/homebrew
Remove brew linkapps from the installation instructions
2018-04-03 11:09:12 +02:00
Haoliang Yu
826de65e2d
fix a wrong number 2018-04-02 22:22:38 -04:00
kevinflo
884ea39d85 Removed documentation reference to the now-depricated var tuple variable assignment syntax 2018-04-02 13:57:19 +09:00
Alex Beregszaszi
29df18d4d7 Remove brew linkapps from the installation instructions 2018-03-31 01:11:56 +01:00
Jason Cobb
e37b619593 Set default fixed point decimal places to 18 2018-03-31 00:56:36 +01:00
wbt
8aadc179ae
Fix small formatting issue
in which a constant was not treated as code, inconsistent with surrounding examples.
2018-03-30 15:28:15 -04:00
Alex Beregszaszi
b540ba527a Disallow empty structs 2018-03-27 15:49:41 +01:00
Alex Beregszaszi
8c1352ca75
Merge pull request #3772 from ethereum/docsTestingGuide
Add syntax testing guide to docs
2018-03-27 14:28:16 +01:00
Erik Kundt
80458b0420 Explains test structure and update mechanism more detailed. 2018-03-27 11:55:21 +02:00
bitshift
bddfa47e77 Updates docs for blockhash changes. 2018-03-27 03:30:03 +01:00
Erik Kundt
9d9c0bf908 Updates "How to contribute"
Adds detailed description of  the new syntax test tool.
2018-03-21 19:35:22 +01:00
Matías A. Ré Medina
6e730df036
Fix: Missing payable at function forceOwnerChange
forceOwnerChange expects ether, and does not have the payable keyword.
2018-03-19 16:38:20 -03:00
Daniel Kirchner
3232561d97 Refactoring; fuse SyntaxTestParser and SyntaxTester to SyntaxTest. 2018-03-13 11:20:11 +01:00
chriseth
5ad34e035e
Merge pull request #3702 from solidity-korea/develop
Add Korean to Translations
2018-03-12 15:07:46 +01:00
wbt
7d206ba64a Noted suicide is deprecated (#3692)
According to the [changelog](b5e804b8ca/Changelog.md), `suicide` was deprecated before 0.4.3 (after 0.2.0) and warning by 0.4.17.
2018-03-12 15:02:24 +01:00
dongsamb
a0907e90c6 Add Korean to Translation 2018-03-10 11:49:51 +09:00
Grzegorz Hasse
7ebd580954 Fix a typo. 2018-03-07 21:27:24 -08:00
chriseth
cbd8644f2d Update changelog for release. 2018-03-07 18:15:25 +01:00
chriseth
c1bf6fb96f
Merge pull request #3634 from ethereum/useCorrectVersionForEmit
Use 0.4.21 pragma for documentation that uses "emit".
2018-03-07 18:13:11 +01:00
ankit raj
7566787cd2 Some words on Remix 2018-03-06 19:39:53 +01:00
chriseth
3057aeece4 Document STATICCALL usage in experimental 0.5.0. 2018-03-06 15:32:45 +01:00
chriseth
6055bc250f Use coding style. 2018-03-06 10:32:58 +01:00
chriseth
5f5af650ce
Merge pull request #3653 from ethereum/docNegativeSourceIndex
Document the meaning of sourceIndex "-1" in source mappings.
2018-03-06 09:28:53 +01:00
Oleksii Matiiasevych
5d486b741f
Revert warning update about view modifier 2018-03-06 14:19:59 +07:00
Daniel Kirchner
154fd1d6cb Document the meaning of sourceIndex "-1" in source mappings. 2018-03-06 02:05:35 +01:00
chriseth
3793aa405b
Merge pull request #3643 from ethereum/gasleft
Move msg.gas to global function gasleft(). Closes #2971.
2018-03-05 20:11:37 +01:00
Daniel Kirchner
b8589fbe0f Use msg.value and gasleft() as an example in the docs. 2018-03-05 16:59:33 +01:00
chriseth
6dc137317f
Merge pull request #3569 from ethereum/evmVersion
EVM version
2018-03-05 12:10:49 +01:00
Daniel Kirchner
c633c0eacb Move msg.gas to global function gasleft(). Closes #2971. 2018-03-05 11:18:04 +01:00
Furkan Ayhan
c2730a4893
Correct warning message in Pure Functions doc
wrong commit that caused this: (64eaff6420 (diff-754689a291c0a19b500c31eb6c1d30c7R506))
2018-03-04 13:23:07 +03:00
bernard peh
cde4e3172b change the language so that it doesn't sound like send and transfer is providing the stipend 2018-03-02 23:40:17 +11:00
chriseth
66ee9aa2f1 Use 0.4.21 pragma for documentation that uses "emit". 2018-03-02 12:29:48 +01:00
bernard peh
2c086cb90b clarify 2300 gas stipend in fallback function section 2018-03-02 16:25:52 +11:00
chriseth
1246917e32 Explain json-io setting. 2018-03-01 17:19:35 +01:00
Elena Dimitrova
c9840c98f4 Documentation updates for internal constructors and function signature (#3365)
* Add a note explaining return values not included in function signature

* Add section on Constructors in documentation

* Improve documented definition for abstract contract

* Add benefits of abstraction to documentation
2018-03-01 16:59:47 +01:00
Oleksii Matiiasevych
a0d006015e Update Tips and Tricks on structs initialization. (#3626)
* Update Tips and Tricks on structs initialization.
2018-03-01 16:54:04 +01:00
chriseth
cf6720eab5
Merge pull request #3587 from OTTTO/develop
Multiline output parameters and return statements
2018-03-01 12:07:09 +01:00
Jordi Baylina
4f34d092ca
Update miscellaneous.rst 2018-02-28 09:35:07 +01:00
chriseth
908b46e9a7
Merge pull request #3476 from ethereum/scoping
C99/C++ scoping rules
2018-02-27 17:06:10 +01:00
Alex Beregszaszi
317e017849 Shift operands were swapped in accepted EIP145 2018-02-27 13:43:02 +01:00
Alex Beregszaszi
afa4a48e37 Remove ROL/ROR as they are not part of EIP145 anymore 2018-02-27 13:42:41 +01:00
Alex Beregszaszi
9e0446a22c Document bitwise shift operators in assembly 2018-02-27 13:42:28 +01:00
chriseth
6391a36a6c Documentation about new scoping rules. 2018-02-27 12:41:32 +01:00
Alex Beregszaszi
aeb75172d5 Fix builtin function formatting in julia 2018-02-27 11:16:12 +01:00
Alex Beregszaszi
8cebfb168b Introduce VM version ('hard fork') column for assembly opcodes 2018-02-27 11:16:12 +01:00
Alex Beregszaszi
e424bd1007 Fix some keyword highlighting in docs 2018-02-27 11:12:10 +01:00
Dax Bondye
e34d367593 Multiline output parameters and return statements 2018-02-26 19:32:55 -08:00
Alex Beregszaszi
3594f02d51 Fix link to solcjs in the installation section 2018-02-27 00:38:52 +01:00
Alex Beregszaszi
241134a881 Mention that solcjs is not compatible with solc in the using-the-compiler section 2018-02-27 00:36:01 +01:00
chriseth
1f5eb4ba59
Merge pull request #3335 from nisdas/ballot-contract
Fixes the errors in the sample ballot contract
2018-02-27 00:17:46 +01:00
wbt
92fe9e621e Note deprecation of constant keyword on functions 2018-02-27 00:08:17 +01:00
chriseth
098033c94a Fix name shadowing in ballot example contract. 2018-02-27 00:02:39 +01:00
Alex Beregszaszi
64eaff6420 Random documentation updates (assembly, faq) 2018-02-26 20:19:26 +01:00
Aaron Colaço
ef7fbf8d0c Fix example; closes #3582 2018-02-24 00:09:49 +05:30
Hongbin Zuo
02307235c5 add in progress 2018-02-23 16:44:05 +08:00
Hongbin Zuo
fc3473b282 Why you made this change:
Talked with Chris and Matt, in order to develop stronger ethereum community in China, we decided to initiate the activity to translate Solidity documentation into Simplified Chinese version. We have invited over 10 experienced translators as a team to contribute on this effort.

What you did:
I finished translation of index.rst into Simplified Chinese and wanted it to be added into main doc index.
2018-02-23 15:06:14 +08:00
chriseth
2b62c201be
Merge pull request #3538 from ethereum/emitEvents
emit pseudo-keyword for events.
2018-02-22 22:42:04 +01:00
chriseth
97d1c70491
Merge pull request #3575 from OTTTO/develop
Recommend to explicitly label the visibility of functions.
2018-02-22 22:41:29 +01:00
Dax Bondye
2ac49b3c2d Reccomend to explicitly label the visibility of functions. 2018-02-22 10:23:20 -08:00
chriseth
71a34abd87
Merge pull request #3513 from OTTTO/develop
Add "Maximum Line Length" section
2018-02-22 16:12:49 +01:00
DYLAN BECKWITH
187e50b14c Recommend consistent style for wrapping long lines. 2018-02-22 07:01:07 -08:00
chriseth
7d87aed5d0
Merge pull request #3552 from ethereum/chriseth-patch-1
ABI: Clarify padding direction.
2018-02-22 15:32:18 +01:00
chriseth
2ada9683dd
Use the term "trailing zero-bytes". 2018-02-22 15:24:14 +01:00
chriseth
f58024b974 Documentation about emitting events. 2018-02-22 15:17:42 +01:00
chriseth
388718b59f Introduce emit statement. 2018-02-22 15:17:30 +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
chriseth
20d8254029
Merge pull request #3427 from duaraghav8/patch-3
Abstract Contracts: Add note about function type
2018-02-21 18:04:35 +01:00
chriseth
29d40ad42a
Clarify padding direction. 2018-02-20 12:19:19 +01:00
chriseth
2a58b44b8b
Merge pull request #3543 from medvedev1088/feature/add-gas-details-to-documentation
Add gas forwarding details to address related functions in documentation
2018-02-19 23:16:36 +01:00
William Entriken
360009c376
Typo 2018-02-19 15:38:55 -05:00
Evgeny Medvedev
bce545c990 Add adjustable/no adjustable gas details to address related functions in units-and-global-variables.rst 2018-02-20 02:06:42 +07:00
chriseth
59f5a31376
Merge pull request #3357 from federicobond/improve-asm-grammar
docs: Improve assembly grammar definition
2018-02-19 19:30:54 +01:00
chriseth
09887de266
Fix link. 2018-02-19 19:02:49 +01:00
chriseth
39f09a90f0
Merge pull request #3448 from fulldecent/patch-8
Clarify name documentation for mixedCase
2018-02-19 18:59:50 +01:00
chriseth
a938e39a9d
Merge pull request #3182 from janat08/patch-2
Update introduction-to-smart-contracts.rst
2018-02-19 16:52:45 +01:00
chriseth
2b23d02c83
Update introduction-to-smart-contracts.rst 2018-02-19 16:52:37 +01:00
Evgeny Medvedev
bfcf4a86c3 Add gas forwarding details to address related functions in units-and-global-variables.rst 2018-02-18 23:43:09 +07:00
chriseth
2b5a5a8669 Make addmod and mulmod revert if the last argument is zero. 2018-02-15 13:52:17 +01:00
Alexandre Bezroutchko
3804f29a8d fix a typo 2018-02-14 09:49:06 +01:00
chriseth
fccede62ce Prepare 0.4.20 release. 2018-02-13 17:17:46 +01:00
chriseth
01ba8b7e1f
Remind authors of best practices. 2018-02-01 17:13:46 +01:00
William Entriken
5497a85158
Clarify name documentation for mixedCase 2018-01-29 14:45:36 -05:00
William Entriken
b517ebb8bc
Fix new Solidity warnings, for #3379 2018-01-29 10:26:07 -05:00
chriseth
bd3692f1e6
Merge pull request #3431 from fulldecent/patch-7
Add mutability declaration to example, for #3379
2018-01-29 13:44:43 +01:00
William Entriken
1cc31bacef
Remove useless self assignment 2018-01-28 17:41:09 -05:00
YuShuangqi
0ef43978fd
update types
correct the mistakes in writings
2018-01-27 07:36:25 +08:00
chriseth
9028610b45
Merge pull request #3424 from wbt/addDecompilerLink
Correct FAQ answer re: decompiler
2018-01-26 19:22:15 +01:00
wbt
efcc8efffa
Respond to chriseth's suggestions
https://github.com/ethereum/solidity/pull/3424#pullrequestreview-90873869
2018-01-26 13:15:22 -05:00
hyperfekt
b4fb7255dd
fixes ethereum/solidity#1209
This clears up a common and easy misunderstanding which seems to occur rather often.
(https://ethereum.stackexchange.com/questions/8263/trying-to-understand-libraries)
2018-01-26 15:32:11 +01:00
chriseth
e7afde9587
Merge pull request #3203 from ethereum/nocall
Prevent libraries from being called.
2018-01-25 16:45:54 +01:00
ZoOgY-DoOgY
4f753233f7
Inheritance, "super" and DDD
As explained in "Multiple Inheritance and Linearization" part, "a simple rule to remember is to specify the base classes in the order from “most base-like” to “most derived”". So "contract Final is Base1, Base2" means Final is derived from Base2, derived from Base1, so the final inheritance sequence should be, starting with the most derived contract : Final, Base2, Base1, mortal, owned.
2018-01-24 13:38:47 +01:00
William Entriken
053e634276
Add mutability declaration to example, for #3379 2018-01-23 21:52:58 -05:00
Raghav Dua
694fc6835f
correct terminology 2018-01-23 23:43:04 +05:30
Raghav Dua
18539e5353
Abstract Contracts: Add note about function type 2018-01-23 23:23:18 +05:30
Maurelian
31aaf4336a Add comment to clarify example (#3415)
* Add comment to clarify example

* Reverse bases.
2018-01-23 18:14:56 +01:00
chriseth
b24de1c29c
Some more clarifications. 2018-01-23 17:53:13 +01:00
wbt
a396572f57
Update FAQ answer re decompiler 2018-01-23 09:53:00 -05:00
Li Xuanji
d555c82db4
clarify address in function selector
I found that the canonical form for `address` in computing the function selector calldata tag is `uint160`. Update the abi specs to explicitly mention this.
2018-01-22 17:34:58 -05:00
Sawyer
530b47a01b
Update using-the-compiler.rst
in outputSelection section of Compiler Input and Output JSON Description:
"evm.sourceMap" should be "evm.bytecode.sourceMap"
"evm.opcodes"  should be "evm.bytecode.opcodes"
2018-01-21 16:35:59 +08:00
chriseth
f7315d19bd Document call protector. 2018-01-19 16:52:23 +01:00
Raghav Dua
95bafbc4e0
update solium description 2018-01-18 16:32:46 +05:30
wbt
1948b9687f
Case convention clarification
Constructors follow the contract naming convention, using CapWords, instead of mixedCase.
2018-01-16 13:08:20 -05:00
chriseth
14fcbd659f
Merge pull request #3393 from fulldecent/patch-5
Use CapWords style for example
2018-01-15 10:55:11 +01:00
William Entriken
b1d99587e0
Use CapWords style for example
Follows recommendation in https://github.com/ethereum/solidity/pull/3392
2018-01-14 13:56:02 -05:00
William Entriken
cb5758aa75
Prefer CapWords style struct names 2018-01-14 13:53:45 -05:00
William Entriken
deeee06bc2
Fix links and JS reference 2018-01-10 20:43:38 -05:00
William Entriken
c7632fc732
No nonsense explanation of compiler options 2018-01-05 10:13:33 -05:00
chriseth
6a9a4e2bb8
Explain the difference to inline assembly. 2018-01-04 17:19:45 +01:00
Federico Bond
be065a1243 grammar.txt: Add optional storage location to parameters 2018-01-04 01:47:07 -03:00
Federico Bond
088d0e5dc1 docs: Improve assembly grammar definition 2017-12-24 04:30:49 -03:00
Chuck LeDuc Díaz
efc198d515 Minor syntax and formatting changes (#3337)
* Copyediting, mostly syntax.

* Use consistent quote chars inside sample code comments

* Revert to put back matching parenthesis

* Use single backticks for comment code quotes

wherever a reserved word, function or variable name is used in a comment
2017-12-20 10:48:22 +01:00
chriseth
a4b886ad3c
Merge pull request #3345 from kevinwucodes/patch-1
add clarity to destructuring assignments with leading comma
2017-12-19 12:39:28 +01:00
Steve Waldman
75dd416c6e [Docs] Note that events can contain both indexed and unindexed arguments for values of dynamic-length types. 2017-12-19 03:09:13 -08:00
Steve Waldman
bae913368a [Docs] Include explanation of how indexed dynamic-length event args are encoded 2017-12-19 01:51:57 -08:00
Kevin Wu
ddad6a3f80
add clarity to destructuring assignments 2017-12-18 09:55:13 -08:00
Alex Beregszaszi
460c9f3943
Merge pull request #3343 from ethereum/structs-struct
Fix grammar: "structs type" into "struct type"
2017-12-18 14:18:06 +00:00
chriseth
2b19bcf609 Link to dev channel 2017-12-18 13:05:08 +00:00
Yoichi Hirai
d6e73b013f
Fix grammar: "structs type" into "struct type" 2017-12-18 13:31:40 +01: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
elenadimitrova
c6a4aba9f0 Document function overloads and resolution 2017-12-12 10:26:58 +02:00
Alex Beregszaszi
40e8716926
Merge pull request #3197 from medvedev1088/fix-security-considerations-example
Add another example with call to demonstrate Re-Entrancy
2017-12-12 04:22:45 +00:00
Alex Beregszaszi
37b06884b2 Correct that ether transfers _can_ always include code execution in re-entrancy example 2017-12-12 03:31:30 +00:00
Evgeny Medvedev
2f6f81640b Add another contract with call to demonstrate re-entrancy vulnerability.
Add another contract with call to demonstrate re-entrancy vulnerability as send explicitly sets gas to 2300 by default according to this commit 9ca7472 which makes it impossible to "get multiple refunds" because a non-zero CALL costs at least 9700 gas. This issue is discussed on Ethereum StackExchange https://ethereum.stackexchange.com/questions/30371/send-ether-reentrancy-attack-in-reality-how-could-fallback-function-make-a-mes/30616#30616
2017-12-12 03:31:00 +00:00
Zhen Zhang
d50e8abefb Document JSON I/O error classes 2017-12-12 03:02:30 +00:00
chriseth
eebeb52aed
Merge pull request #3228 from ethereum/docs-tests-struct
Enable struct abi example with experimental pragma
2017-12-11 14:26:15 +01:00
chriseth
27f38fb5b3
Merge pull request #3281 from GNSPS/develop
Removed manual adjustment of stack of the docs
2017-12-11 12:00:47 +01:00
Kamuela Franco
ef57961711
Update style-guide.rst to include enum style 2017-12-09 14:53:40 +00:00
Gonçalo Sá
ca16099ad0 Removed manual adjustment of stack of the docs
Removed the section fo the docs regarding manual adjustment of the stack given the `unbalanced stack` check prevents its use
2017-12-05 03:20:35 +00:00
Ezra Epstein
29b30a95e9
link to wiki for additional info on napspec 2017-12-01 14:00:44 -05:00
Alex Beregszaszi
134cc73e8e Enable struct abi example with experimental pragma 2017-12-01 16:20:23 +00:00
chriseth
f7538daaf4 Preparation for 0.4.19 release. 2017-11-30 01:23:22 +01:00
Alex Beregszaszi
59bed63dbc Update standard json documentation 2017-11-29 20:10:18 +00:00
wbt
2ebc9953e4
Minor update in contracts
Fix typos and prevent example code from needing horizontal scroll bar
2017-11-29 14:21:21 -05:00
chriseth
a1f59cbb17
Merge pull request #3220 from ethereum/IuliaIf
If statement for Iulia / Inline Assembly
2017-11-27 09:02:46 -05:00
chriseth
1d91b65b72 Force condition to be bool in iulia mode. 2017-11-23 18:52:04 +01:00
chriseth
d0be67f6b0
Bugfix in blind auction 2017-11-23 18:43:19 +01:00
Alex Beregszaszi
dcd55c5005 Add exponential notation to numbers in SolidityLexer 2017-11-23 12:13:00 +00:00
Alex Beregszaszi
2c3c5ad7c9 Move reserved keywords from SolidityLexer 2017-11-23 12:12:34 +00:00
chriseth
e15918d8b6 Add if statement to Julia specification. 2017-11-22 16:25:24 +01:00
chriseth
6dbc34e16e If statement for Iulia / inline assembly. 2017-11-22 16:25:24 +01:00
Alex Beregszaszi
ff229ab05a
Merge pull request #3195 from ethereum/chriseth-patch-1
Tone down similarity to JavaScript.
2017-11-22 13:25:04 +00:00
chriseth
88e1b68aaf More explanation about the packed encoding. 2017-11-22 12:29:16 +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
Sami Mäkelä
a4310fec55 avoid reassigning variables 2017-11-22 03:33:08 +00:00
Sami Mäkelä
16f8187166 added Switch specification 2017-11-22 03:33:07 +00:00
chriseth
d4452d8c1f Small fixes
suggested by @mrsmkl
2017-11-22 03:33:07 +00:00
chriseth
c2f2b25064 Some clarifications. 2017-11-22 03:33:07 +00:00
chriseth
5eaef9e87e Typos and clarifications. 2017-11-22 03:33:07 +00:00
chriseth
a67bd2fb6a Include JULIA section in the TOC. 2017-11-22 03:33:07 +00:00
Alex Beregszaszi
72f9e45b1a Add true/false literals 2017-11-22 03:33:07 +00:00
Alex Beregszaszi
980ba42faf Remove from examples 2017-11-22 03:33:06 +00:00
Alex Beregszaszi
0e0de7b7fd Switch cases do not require colon 2017-11-22 03:33:06 +00:00
chriseth
d9abe7b712 Require at least one case in switch 2017-11-22 03:33:06 +00:00
Alex Beregszaszi
e9b08e029e Restriction of switch 2017-11-22 03:33:06 +00:00
Alex Beregszaszi
15ca987048 Include section for Julia objects 2017-11-22 03:33:06 +00:00
Alex Beregszaszi
29502f9d44 Include type names in grammar 2017-11-22 03:33:06 +00:00
Alex Beregszaszi
b2f2b36b7c Remove subassembly 2017-11-22 03:33:05 +00:00
Alex Beregszaszi
be470f107e Support types in grammar 2017-11-22 03:33:05 +00:00
Alex Beregszaszi
0493828916 Clarify literals 2017-11-22 03:33:05 +00:00
Alex Beregszaszi
29da069bf0 Do not require parentheses on function return values 2017-11-22 03:33:05 +00:00
chriseth
ad5cd21571 More specification. 2017-11-22 03:33:05 +00:00
chriseth
f17bdaabda Improve semantics description. 2017-11-22 03:33:04 +00:00
Alex Beregszaszi
e33a9b43ad Include split/combine256 2017-11-22 03:33:04 +00:00
Alex Beregszaszi
aa6f33db2c Use signed/unsigned types in low-level functions 2017-11-22 03:33:04 +00:00
Alex Beregszaszi
0e4d236558 Include implicit type conversions 2017-11-22 03:07:54 +00:00
Alex Beregszaszi
183f70262a Document backends 2017-11-22 03:07:54 +00:00
Alex Beregszaszi
0339cc1bb1 Case is missing from switch statements 2017-11-22 03:07:54 +00:00
Alex Beregszaszi
3d99e82795 Add types to the examples 2017-11-22 03:07:54 +00:00
Alex Beregszaszi
173bdb0df6 Define types in Julia 2017-11-22 03:07:54 +00:00
Alex Beregszaszi
c3a6db7256 Describe built-in Julia functions 2017-11-22 03:07:54 +00:00
Alex Beregszaszi
2a91eb9538 Move Julia documentation to its own file 2017-11-22 03:07:49 +00:00
chriseth
f73660423a First take in formal specification. 2017-11-22 02:45:07 +00:00
chriseth
243002e5f3 Describe Julia. 2017-11-22 02:45:07 +00:00
Alex Beregszaszi
f22ac8fc96
Merge pull request #3204 from frangio/grammar-incomplete-tuples
Make tuple components optional in documented grammar
2017-11-22 02:22:38 +00:00
chriseth
5c9e273d02 Link to translations. (#3212) 2017-11-21 12:03:47 +00:00
Chua Chee Wee
15427dc8d3
Change phrase in type deduction
updated phrase in type deduction from "any value of this type" to "the highest value of this type"
2017-11-16 23:18:06 +08:00
chriseth
03b3faa8ef Tone down similarity to JavaScript. 2017-11-16 13:18:43 +01:00
Alex Beregszaszi
58e452d14d
Merge pull request #3173 from federicobond/improve-number-grammar
Improve rule for decimal numbers in grammar.txt
2017-11-16 09:43:47 +00:00
Federico Bond
58a0f09f8e Improve rule for decimal numbers in grammar.txt 2017-11-15 17:11:45 -03:00
chriseth
3121608d7c
Remove obsolote statement about msg.sender and library calls. 2017-11-15 17:08:42 +01:00
Liana Husikyan
9d328d308d
Update index.rst
Some minor text editing.
2017-11-15 03:18:30 +01:00
Francisco Giordano
0b3ef5bbc7 Make tuple components optional in documented grammar 2017-11-14 16:35:50 -03:00
janat08
dfac04d139
Update introduction-to-smart-contracts.rst 2017-11-09 05:17:28 +06:00
Chua Chee Wee
d4db1624b5
Changed limitation to feature
Changed the word "limitation" to "feature" for the note where transfer is described.
2017-10-30 15:40:28 +08:00
walter-weinmann
fcf66721da abi-spec: example code doesn't fit grammar.txt. 2017-10-29 11:58:00 +01:00
Christian Pamidov
f9b240096f Fixed typos (#3139) 2017-10-28 12:48:57 +01:00
Svetlin Nakov
58778be567 Fixed typos 2017-10-25 22:58:18 +03:00
Svetlin Nakov
f39cf7be41 Improved the "Naming" section
Improved the "Naming" section. Added naming examples. Improved consistency.
2017-10-25 10:33:26 +03:00
chriseth
4f30582db4 Merge pull request #3053 from wjmelements/nit-examples
Replace biddingTime with auctionEnd in auction example
2017-10-20 18:06:45 +02:00
Boris Kostenko
36bf0a8a86 Accent on ext.deps in install docs (issue #3048) 2017-10-19 08:25:27 +03:00
Boris Kostenko
55a7828848 Accent on ext.deps in install docs (issue #3048) 2017-10-19 01:10:12 +03:00
chriseth
c3a7422399 Update changelog for 0.4.18 release. 2017-10-18 12:48:15 +02:00
chriseth
7849b920cf Bug list entry. 2017-10-18 00:19:36 +02:00
chriseth
c67b559ead Merge pull request #2994 from idrabenia/develop
Add solhint to list of tools.
2017-10-17 18:56:30 +02:00
chriseth
3bcaa24c5e Project moved. 2017-10-17 18:55:55 +02:00
Giovanni Casinelli
550653300b Update abi-spec.rst 2017-10-16 19:48:04 +08:00
Alex Beregszaszi
dbc8655b36 Merge pull request #3083 from davidau/patch-1
Update miscellaneous.rst
2017-10-16 10:21:42 +01:00
David Au
4047ed23fc Update miscellaneous.rst
Fix small typo
2017-10-15 11:04:00 -04:00
walter-weinmann
afef6faeb6 grammar.txt: spelling error uixed. 2017-10-14 15:48:14 +02:00
Alex Beregszaszi
81f9f86ce5 Add reference to EIP-55 in address literals (#3062) 2017-10-10 17:54:29 +02: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
09276cb9d3 Do not add members of address to contracts in experimental 0.5.0 2017-10-05 11:42:34 +01:00
chriseth
f6fb7d96d3 Merge pull request #2990 from ethereum/someMoreSMTStuff
Basic SMT tests.
2017-10-04 14:56:24 +02:00
Dave Hoover
6de9fc710e Minor edits 2017-10-04 07:35:05 -05:00
Ilya Drabenia
5cded77821 Add solhint to list of tools.
Hello!

I develop linter that provide both security, style guide and best practices validations for Solidity users.

I will be glad if it will be useful for this community!
2017-09-29 18:03:40 +03:00
chriseth
a1f3046647 Add SMT tests. 2017-09-29 12:44:39 +02:00
Zetherz
c6c3163c2a Fixed code example (#2955) 2017-09-28 13:21:02 +01:00
Martín Triay
ab4f97a80b Update contracts.rst
Fixed web3 URL
2017-09-27 13:59:26 -03:00
Alex Beregszaszi
a7592fa801 Document packed ABI 2017-09-26 22:48:49 +01:00
chriseth
a23f7f38b9 Merge pull request #2909 from bernardpeh/mydev
faq typo
2017-09-25 12:01:20 +02:00
chriseth
d45629d909 Update frequently-asked-questions.rst 2017-09-25 12:01:09 +02:00
bernard peh
5ffd119990 minor tuning to sentence to be more accurate 2017-09-25 19:29:10 +10:00
chriseth
3dc7c3807b Update bug list. 2017-09-21 15:26:30 +02:00
Lefteris Karapetsas
7f88d43937
docs: Specify gas fallback function from call
Specify that also 21k gas is needed for fallback functions originating from
external function calls.
2017-09-21 14:15:13 +02:00
Matthieu Caneill
7b7cf8faea fix typo: missing word in documentation 2017-09-21 01:14:38 +02:00
Alex Beregszaszi
a061e8db34 Clarify shorthand notation in ABI 2017-09-19 11:02:14 +01:00
chriseth
32965807a7 Fix ABI spec regarding arrays. 2017-09-19 11:01:41 +01:00
bernard peh
5234408ff5 possible typo fix 2017-09-16 23:13:50 +10:00
Alex Beregszaszi
923373b41e Clarify ABI & Solidity types 2017-09-16 12:31:12 +01:00
chriseth
c5063d3155 Use "tuple" for struct types in ABI JSON.
Only use tuple as a type in the ABI (and remove all "anonymous struct" references too)
2017-09-16 12:31:12 +01:00
chriseth
e4bb767dcd Document structs in ABI 2017-09-16 12:12:44 +01:00
Alex Beregszaszi
e1f90f0ad6 Fix nested lists in the ABI documentation 2017-09-13 17:39:48 +01:00
Alex Beregszaszi
5c9dbd5083 Merge pull request #2473 from ethereum/functiontype-sig
Add .selector member on function types
2017-09-13 17:35:48 +01:00
Alex Beregszaszi
c70ebfd241 Document function selectors 2017-09-13 11:40:57 +01:00
Alex Beregszaszi
135c55c4d0 Overhaul contract creation section in the documentation (add reference to remix and web3.js) 2017-09-13 09:53:56 +01:00
chriseth
aaf73071db Merge pull request #2880 from ethereum/docs-metadata
Promote metadata to its own chapter (split from miscellaneous)
2017-09-12 13:27:42 +02:00
chriseth
fabf4accd3 Merge pull request #2870 from aarongoa/develop
Add payable constructor for `C` - #2869
2017-09-12 11:32:46 +02:00
Aaron Colaço
2b88eeb370 Make createAndEndowD payable in contract creation example 2017-09-12 10:07:54 +01:00
Alex Beregszaszi
b1a7281ee9 Promote metadata to its own chapter (split from miscellaneous) 2017-09-11 15:05:46 +01:00
Alex Beregszaszi
fb1db58def Merge pull request #2842 from ethereum/chriseth-patch-1
Explain how to run the tests in more detail.
2017-09-05 22:33:50 +01:00
chriseth
818a371929 Explain how to run the tests in more detail. 2017-09-05 22:02:43 +01:00
Alex Beregszaszi
bdafce3e4f Convert ABI spec from Markdwon to RST 2017-09-05 14:50:27 +01:00
chriseth
152a0e69c4 Merge pull request #2871 from ethereum/fixedpointdocs
Explain fixed point types in docs
2017-09-04 19:04:12 +02:00
Alex Beregszaszi
435eeec5e1 Explain the difference between floating and fixed point 2017-09-04 15:57:05 +01:00
Alex Beregszaszi
76bd8c5769 Explain fixed point types 2017-09-04 15:57:05 +01:00
Alex Beregszaszi
c975bf87db Move fixed after int in docs 2017-09-04 15:19:39 +01:00
Alex Beregszaszi
ac5fd64c23 Mention that different Unicode codepoint can look the same 2017-09-01 19:18:46 +01:00
Alex Beregszaszi
88bce877c4 Clarify some subtleties of the fallback function 2017-09-01 19:16:52 +01:00
Alex Beregszaszi
cbd729957b Document character set 2017-09-01 19:13:26 +01:00
Alex Beregszaszi
f3230a41ce Document caveats about timestamp and blockhash 2017-09-01 19:13:26 +01:00
Alex Beregszaszi
8e1aae2e1a Document gas/value modifiers with overloading 2017-09-01 19:09:36 +01:00
Alex Beregszaszi
f787ecae5a Document byte[] vs bytes 2017-09-01 19:09:36 +01:00
Alex Beregszaszi
8743b2cead Document call/gas modifiers properly 2017-09-01 19:09:07 +01:00
Alex Beregszaszi
b3c251c154 Merge pull request #2831 from ethereum/docs
Various doc updates
2017-08-28 12:47:44 +01:00
Alex Beregszaszi
550d646b97 Explain safe purchase (even number) 2017-08-28 12:14:41 +01:00
Alex Beregszaszi
5a5d21d0c8 Add note about throw being deprecated 2017-08-28 12:04:56 +01:00
Alex Beregszaszi
2b26d6b9d7 Require 0.4.12 for the VectorSum example (for loop) 2017-08-28 11:59:36 +01:00
Alex Beregszaszi
e649ce71bd Refer to internal ABI documentation 2017-08-28 11:59:35 +01:00
Alex Beregszaszi
412cc6bc58 Highlight opcodes in docs 2017-08-28 11:59:35 +01:00
Alex Beregszaszi
dd2cc899bb Fix lists and links 2017-08-28 11:59:35 +01:00
Robert Edström
5e73ea7fbc Correct package name for installing solc on Arch 2017-08-27 14:36:41 +03:00
Alex Beregszaszi
2af949baaa Explain the limitations of view and pure 2017-08-25 12:49:53 +01:00
Alex Beregszaszi
f791ca3957 Clarify ABI regarding constant 2017-08-25 12:37:23 +01:00
Alex Beregszaszi
bb493bf52d Require 0.4.16 for view/pure in docs examples 2017-08-25 12:37:23 +01:00
chriseth
0878eaad46 Prepare 0.4.16 release. 2017-08-24 18:31:37 +02:00
chriseth
71294b2872 Merge pull request #2798 from ethereum/statemutability
Rename statemutability to stateMutability in ABI/AST
2017-08-24 18:27:08 +02: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
Alex Beregszaszi
deeac7e2e0 Rename statemutability to stateMutability in ABI/AST 2017-08-24 15:23:00 +01:00
Alex Beregszaszi
23c791e4df Add pure to grammar 2017-08-24 13:46:18 +01:00
Alex Beregszaszi
504e6285f3 Add pure to ABI spec 2017-08-24 13:46:18 +01:00
Alex Beregszaszi
93e6e83093 Document pure functions 2017-08-24 13:46:18 +01:00
Nick Savers
f67f798887 Fix link to Russian version on wiki 2017-08-24 12:15:26 +02: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
Alex Beregszaszi
3b07c4d38e Merge pull request #2757 from ethereum/cmake
Static linking
2017-08-23 12:36:24 +01:00
Paweł Bylica
09628dee8c
docs: Add a note about CMake options 2017-08-22 22:50:25 +02:00
Alex Beregszaszi
b1cdf81506 Document view functions 2017-08-22 18:25:46 +01:00
Alex Beregszaszi
9e8d2a561f Update grammar with view 2017-08-22 18:24:22 +01:00
Alex Beregszaszi
efe4d68a7b Introduce view (and keep constant as an alias) 2017-08-22 18:24:22 +01:00
Alex Beregszaszi
8025ac180f Add missing keywords to documentation lexer 2017-08-16 21:24:20 +01:00
Alex Beregszaszi
d5f01460f9 Allow constant modifier on state variables in grammar 2017-08-16 21:22:59 +01:00
Alex Beregszaszi
47b6aa1f5b Update grammar to reflect state mutability 2017-08-16 21:19:09 +01:00
Alex Beregszaszi
247ed0de30 Merge pull request #2654 from ethereum/docs-fixed
Update grammar/docs for current fixed point types
2017-08-16 19:51:37 +01:00
Alex Beregszaszi
09ef3d8e72 Add proper warning for fixed point types 2017-08-16 16:47:49 +01:00
Alex Beregszaszi
4acc552e66 Fix the grammar for fixed point types 2017-08-16 16:47:49 +01:00
Alex Beregszaszi
80ee7c2b36 Fix ABI for fixed types 2017-08-16 16:47:11 +01:00
chriseth
2021508653 Update contracts.rst 2017-08-16 11:31:50 +02:00
Isaac Ibiapina
2dc9e53a49 Specify address as string on events documentation 2017-08-15 14:57:10 -04:00
chriseth
80f83169b1 Merge pull request #2659 from jamesray1/patch-25
Link: members-of-addresses in docs/types.rst
2017-08-15 17:46:21 +02:00
chriseth
2fa59489b6 Merge pull request #2664 from joshuahannan/develop
added while loop description
2017-08-15 17:45:44 +02:00
chriseth
8ee973f316 Merge pull request #2660 from jamesray1/patch-26
Constructor index in docs/contracts.rst
2017-08-15 17:43:29 +02:00
chriseth
29cf3d9c58 Merge pull request #2732 from ethereum/statemutability-abi
Add statemutability field to ABI
2017-08-15 17:39:20 +02:00
Alex Beregszaszi
12f3257e7d Add statemutability field to the ABI 2017-08-15 11:35:50 +01:00
feliam
ed77f706a0 Update installing-solidity.rst 2017-08-14 16:47:16 -03:00
Stu West
fdeb94a105 docs typo: remove duplicate period and unnecessary spaces in intro 2017-08-12 15:43:41 -07:00
chriseth
5b26e2bcee Merge pull request #2486 from jamesray1/patch-22
Ref to getter function in docs/miscellaneous.rst
2017-08-11 18:26:46 +02:00
chriseth
a0f9e8e778 Merge pull request #2485 from jamesray1/patch-21
Update frequently-asked-questions.rst with a ref to getter functions
2017-08-11 18:26:14 +02:00
chriseth
0fab0ed427 Merge pull request #2487 from jamesray1/patch-23
Ref to getter function in docs/introduction-to-smart-contracts.rst
2017-08-11 18:25:23 +02:00
Alex Beregszaszi
ecec557d2b Merge pull request #2634 from ethereum/chriseth-patch-1
Clarify internal function types
2017-08-11 16:59:22 +01:00
Alex Beregszaszi
9358001ba4 Use temporary variable for sum example 2017-08-10 17:47:35 +01:00
Alex Beregszaszi
34503d98d7 Move init/cond into the for loop 2017-08-10 17:30:57 +01:00
Alex Beregszaszi
a323486a9b Add pure assembly example for summing 2017-08-10 17:30:57 +01:00
vladislav-ankudinov
79137e4703 fix typo 'onte' -> 'onto' 2017-08-09 14:46:51 +03:00
chriseth
3aef36b1cf Update changelog. 2017-08-08 15:56:52 +02:00
SaadSurya
8a9f62842d Update installing-solidity.rst 2017-08-07 16:53:56 +05:00
chriseth
dc0f85c4fb Merge pull request #2685 from elopio/patch-1
Add the command to install the stable solc snap
2017-08-04 14:51:31 +02: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
Leo Arias
f5fc808875 Add the tag for the command 2017-08-02 01:53:07 -06:00
Leo Arias
af128b6c97 Add the command to install the stable solc snap
Now that v0.4.14 was released, all the changes in the snapcraft.yaml landed, the continuous delivery is configured both for edge and candidate snaps, and we have been testing the snap for a while, I have pushed it to the stable channel in the Ubuntu store.
2017-08-02 01:51:43 -06: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
Alex Beregszaszi
a46552540e Add bug.json entry for delegatecall 2017-08-01 20:51:45 +01:00
James Ray
0da46f259f :ref:getter function<getter-functions> 2017-07-31 20:35:29 +10:00
James Ray
5678a08d58 :ref:getter function<getter-functions> 2017-07-31 20:32:34 +10:00
James Ray
8a19b2f24e :ref:getter function<getter-functions> 2017-07-31 20:26:26 +10:00
chriseth
91e7fcaa59 Release date for version 0.4.14. 2017-07-31 12:05:59 +02:00
chriseth
a73fb4d529 Wording. 2017-07-31 11:44:35 +02:00
chriseth
223261893a Merge pull request #2658 from jamesray1/patch-8
Updated link for getter-functions for consistency in docs/contracts.rst
2017-07-31 11:41:23 +02:00
Joshua Hannan
5f9c02c6b6 added while loop description 2017-07-29 18:15:54 -05:00
James Ray
0c63f271a2 Updated getter-functions ref 2017-07-29 12:05:49 +10:00
chriseth
2cdb5c9e83 Changelog and bug list entry. 2017-07-28 15:33:00 +02:00
James Ray
064918c94a Constructor is not a solidity keyword
Removed backticks
2017-07-28 15:31:03 +10:00
James Ray
c5b82f7d50 Constructor index
For referencing, especially when it hasn't been mentioned but not discussed in detail previously e.g. here and here.
2017-07-28 15:24:19 +10:00
James Ray
84e71f061c Link: members-of-addresses 2017-07-28 15:07:18 +10:00
James Ray
3c3060dd87 :ref:getter-functions 2017-07-28 11:54:59 +10:00
James Ray
c03a85aa7b ref getter-functions 2017-07-28 11:50:20 +10:00
James Ray
89551d9968 Updated reference to getter-functions 2017-07-28 11:34:22 +10:00
James Ray
bc8d7d4a5d Updated link for getter-functions 2017-07-28 11:30:53 +10:00
chriseth
f18b26cf14 Merge pull request #2640 from elopio/patch-2
Add the install instructions from the edge snap
2017-07-27 12:32:58 +02:00
chriseth
5cbf5f216f Merge pull request #2629 from hcaw/patch-1
Link to Ethereum Studio removed - project has been discontinued
2017-07-27 12:30:01 +02:00
chriseth
07e0a7e090 Merge pull request #2649 from nathanph/patch-1
Fix typo in contracts.rst
2017-07-27 11:48:38 +02:00
Yoichi Hirai
a20e5fc048 Merge pull request #2636 from ethereum/docs-random
Random documentation fixes
2017-07-27 11:30:12 +02:00
chriseth
31449c9834 Closing parenthesis 2017-07-27 11:03:06 +02:00
Nathan Hernandez
99b6411853 Fix typo in contracts.rst
Changed `internall` to `internally`.
2017-07-27 01:46:53 -04:00
Skiral Inc
7f7927fd1d fix misspell 2017-07-26 16:17:43 -07: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
Alex Beregszaszi
bf10cd6c95 Mention all global aliases 2017-07-26 23:05:09 +01:00
Alex Beregszaszi
04582dd2cb Mention that callcode is deprecated 2017-07-26 23:05:09 +01:00
Alex Beregszaszi
15689506c5 Remove interface keyword from reserved list 2017-07-26 23:05:09 +01:00
Alex Beregszaszi
106763d08e Remove reference to Why3 2017-07-26 23:05:09 +01:00
Leo Arias
558fa46442 Add the install instructions from the edge snap 2017-07-26 10:28:27 -06:00
Yoichi Hirai
927f01c6d9
Fix grammar 2017-07-26 17:02:06 +02:00
Yoichi Hirai
092c2815e5 Merge pull request #2631 from maurelian/maurelian_patch1
Clarify require and assert usage
2017-07-26 16:45:37 +02:00
chriseth
887823dca6 Merge pull request #2627 from atfornes/patch-2
Change Mapping example to valid (executable) code
2017-07-26 14:45:00 +02:00
chriseth
f74e40598f Clarify internal function types
Fixes https://github.com/ethereum/solidity/issues/2617
2017-07-26 14:30:32 +02:00
maurelian
9c676e796c Clarify require and assert usage 2017-07-25 20:02:27 -04:00
Harry Wright
d34e2690c9 Moved Ethereum Studio to Discontinued section as suggested 2017-07-25 16:56:18 +01:00
Harry Wright
a23c4cae9b Link to Ethereum Studio removed - project has been discontinued
see https://www.reddit.com/r/ethereum/comments/6c23ua/is_hack_ethercamp_dead/dhrf0aa/
2017-07-25 15:54:43 +01:00
chriseth
3c2b710b5e Merge pull request #2484 from jamesray1/patch-8
Added links for the getter function.
2017-07-25 15:51:09 +02:00
Antonio Tenorio-Fornés
db739dff69 Change Mapping example to valid (executable) code
Current example will not compile and would need to be compiled in separate files, unlike how it is shown (see https://github.com/ethereum/solidity/pull/2618).

The proposed changes provide both a source code that compiles and a easier to understand Contract creation (using new instead of a contract address).
2017-07-24 18:30:54 +02:00
NIC619
3dcbe68aea minor fix on assembly example 2017-07-21 00:25:36 -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
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
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
b65601bb3d Add changelog and documentation 2017-07-13 15:18:40 +02:00
chriseth
91f17a3662 Merge pull request #2560 from ethereum/abi-spec-nitpick
Nitpicking abi-spec.rst
2017-07-12 15:16:23 +02:00
Yoichi Hirai
6307a12651
Borrow a sentence from @axic
and edit the phrase "following its type", which sounded like the data follows the type in the call data.
2017-07-12 14:37:12 +02:00
Yoichi Hirai
d5c3ef4605
Nitpicking abi-spec.rst 2017-07-12 13:27:47 +02:00
chriseth
b981ef2055 Merge pull request #1477 from ethereum/doc-remove-fixed
[WIP] docs: ``var x = 1/4`` is not working, so remove description about it
2017-07-12 12:11:13 +02:00
hh3755
d01b02f8cf typo of bitween for between 2017-07-08 17:23:48 +08:00
James Ray
221a013042 Fixed reference to getter function 2017-07-07 12:07:25 +10:00
James Ray
ba0d277e10 Fixed reference to getter function 2017-07-07 12:07:16 +10:00
James Ray
e257a6c89a Fixed reference to getter function 2017-07-07 12:07:10 +10:00
chriseth
f09c55f89c Release date for 0.4.13 2017-07-06 11:06:13 +02:00
Patrick Walters
b166228a39 Update contributing.rst 2017-07-04 23:46:07 -05:00
chriseth
d1e4e03807 Set release date. 2017-07-03 13:45:36 +02:00
chriseth
0446893bce Merge pull request #2496 from jamesray1/patch-24
Added ref for Getter functions
2017-07-01 16:43:03 +02:00
James Ray
3594f973df Update types.rst 2017-07-01 13:31:31 +10:00
James Ray
7471220cb4 Added ref for Getter functions 2017-07-01 13:29:20 +10:00
Alex Beregszaszi
a46b3479bb Remove parsing of why3 doc strings 2017-06-30 22:34:03 +01:00
Ben Che
3df637baec Update types.srt
Fix minor grammatical/spelling errors.
2017-06-30 10:48:59 -04:00
James Ray
eb84acbbcb Ref to getter function 2017-06-30 19:51:10 +10:00
James Ray
433039f105 Ref to getter function 2017-06-30 19:47:35 +10:00
James Ray
d2c0c5f462 Getter function ref 2017-06-30 19:42:53 +10:00
James Ray
c94c77d2d1 Update frequently-asked-questions.rst 2017-06-30 19:35:00 +10:00
James Ray
77e4f9c8fc Changed URL for getter to a ref 2017-06-30 19:24:39 +10:00
James Ray
355d69b4ba Used a ref for getter instead of a URL. 2017-06-30 19:19:06 +10:00
James Ray
2ac51a1a90 Added links for the getter function. 2017-06-30 19:11:21 +10:00
chriseth
708d17d13f Merge pull request #2464 from federicobond/deprecate-function-type-names
Warn deprecated usage of parameter names in function types
2017-06-27 16:32:48 +02:00
Federico Bond
70fd5c1770 Warn deprecated usage of parameter names in function types 2017-06-26 15:39:01 -03: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
chriseth
b00d7a6911 Merge pull request #2401 from federicobond/update-grammar
grammar.txt: Fix grammar for f.gas(p).value(q)() style calls
2017-06-23 11:33:03 +02:00
gregg dourgarian
12d020e890 Update installing-solidity.rst
correct spelling of 'release'
2017-06-22 23:37:28 -05:00
Alex Beregszaszi
79ed529b3f Merge pull request #2452 from ethereum/fixPassingEmptyString
Fix passing empty string
2017-06-22 22:33:06 +01:00
Alex Beregszaszi
08a5d144ac Merge pull request #2426 from ethereum/miniMoustache
Whiskers template system
2017-06-22 22:17:26 +01:00
Federico Bond
9fc4c877d3 Fix and improve grammar.txt 2017-06-22 13:55:08 -03:00
Federico Bond
f0f1e5abfa grammar.txt: Fix grammar for f.gas(p).value(q)() style calls 2017-06-22 13:54:05 -03:00
chriseth
ce069e9c1e Merge pull request #2423 from federicobond/tuple-grammar
Fix grammar for tuple expressions
2017-06-22 18:43:39 +02:00
chriseth
7ec9b70457 Bug list entry. 2017-06-22 18:33:41 +02:00
Alex Beregszaszi
1d4f40e3a2 Document Whiskers. 2017-06-22 16:56:57 +02: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
Federico Bond
1e3b45d61e Fix grammar for tuple expressions 2017-06-19 17:16:45 -03:00
chriseth
26ea9ce07c Merge pull request #2407 from jamesray1/patch-7
Link for the semantic versioner for npm
2017-06-19 12:02:21 +02:00
chriseth
2d1d07c3a7 Update layout-of-source-files.rst 2017-06-19 12:02:03 +02:00
chriseth
0c75afb2c1 Merge pull request #2225 from ethereum/julia-for
Implement for statement in assembly parser / printer / code generator
2017-06-19 11:53:22 +02:00
chriseth
e0b9589e5a Merge pull request #2373 from jamesray1/patch-14
Changed to "is compiled" rather than "maps" to the DVM op code to avoid ambiguity
2017-06-16 16:52:46 +02:00
chriseth
71d39755fe Changelog and documentation. 2017-06-16 10:56:21 +01:00
James Ray
0d9970de1d Link for the semantic versioner for npm 2017-06-15 22:01:17 +10:00
James Ray
c1e0a6557d Create types.rst
"is compiled" avoids ambiguity compared with "maps", especially for those who may not understand what maps may mean and may confuse it with the "mapping" code keyword
2017-06-15 19:37:37 +10:00
Alex Beregszaszi
eb73015fd2 Support dialect of assembly in grammar 2017-06-15 00:43:19 +01:00
Alex Beregszaszi
9e1d24a7eb Support interface contracts 2017-06-15 00:41:00 +01:00
Alex Beregszaszi
4970d89f3b Support AssemblyLabel in grammar 2017-06-15 00:40:01 +01:00
Alex Beregszaszi
1ceb735fe1 Fix AssemblyAssignment in grammar 2017-06-15 00:39:46 +01:00
Alex Beregszaszi
42b61171d9 Merge pull request #2192 from winsvega/develop
add STATICCALL instruction
2017-06-14 21:03:32 +01:00
chriseth
fd5bf16101 Merge pull request #2384 from ethereum/parseFunctionalInstructions
Enforce function arguments when parsing functional instructions.
2017-06-14 18:35:16 +02:00
Dimitry
c20cdd0a05 add new opcode instructions to the parser
STATICCALL        0xfa  6 inputs  (gas address mem1 mem2 mem3 mem4)
2017-06-14 18:18:12 +02:00
chriseth
bab470086c Merge pull request #2364 from VoR0220/abiSpec
Bring ABI Spec Into Solidity Documentation
2017-06-14 17:25:31 +02:00
chriseth
98139ead42 Clarify functional style. 2017-06-14 15:46:16 +02:00
RJ Catalano
1d644bed31
try to get rid of warning
Signed-off-by: RJ Catalano <rj@monax.io>
2017-06-14 08:06:03 -05:00
Travis Jacobs
9191f8af5f Add linter-solium 2017-06-13 21:03:58 -02:30
chriseth
d47fcbb612 Clarify statement about receiving ether
Fixes #2377
2017-06-13 19:08:13 +02:00
Yoichi Hirai
0b22154a75
libevmasm: add RETURNDATACOPY and RETURNDATASIZE 2017-06-13 16:57:02 +02:00
chriseth
ca70d82b96 Include abi specs in index and fix styling. 2017-06-12 18:33:23 +02:00
chriseth
3170fd9a93 Formatting of heading. 2017-06-12 17:50:03 +02:00
chriseth
c66c5d4a21 Change fixed number example. 2017-06-12 17:49:11 +02:00
chriseth
a0777a7ffb Include structs. 2017-06-12 17:43:48 +02:00
chriseth
3699d27cc9 Merge pull request #2368 from jamesray1/patch-5
Doxygen
2017-06-12 17:23:55 +02:00
chriseth
e48a1a3851 Merge pull request #2372 from jamesray1/patch-13
Create types.rst
2017-06-12 17:21:28 +02:00
chriseth
39a7b63897 Added linebreak. 2017-06-12 17:21:19 +02:00
chriseth
43d3d4eba4 Merge pull request #2366 from sandakersmann/patch-1
Fixed "building-from-source" link
2017-06-12 17:19:05 +02:00
chriseth
78c892aafa Undo changes to building from source. 2017-06-12 17:18:55 +02:00
James Ray
0423278a31 Create types.rst
hash table link
2017-06-12 18:12:09 +10:00
James Ray
09a77de8ab Create types.rst
Maps will be explained later `[here](http://solidity.readthedocs.io/en/develop/types.html#mappings)`_
2017-06-12 18:02:30 +10:00
James Ray
2dd23cec7a Create types.rst
Note that the following is not a pair of dynamic arrays but a dynamic array of pairs (i.e. of fixed size arrays of length two).
2017-06-12 17:36:51 +10:00
James Ray
997151c734 Doxygen
Link for more information about Doxygen.
2017-06-11 15:41:15 +10:00
Marius Kjærstad
320bc15431 Fixed "building-from-source" link
Fixed building-from-source link in contributing.rst
2017-06-10 14:33:02 +02:00
RJ Catalano
3525280a72
some small fixes to the names and underlining; still need to fix the fixed point bytecode representation
Signed-off-by: RJ Catalano <rj@monax.io>
2017-06-09 14:49:59 -05:00
RJ Catalano
548ae18dfd
begin abi spec translation into solidity docs
Signed-off-by: RJ Catalano <rj@monax.io>
2017-06-09 13:58:55 -05:00
AndreMiras
997eb68956 Update installing-solidity.rst on Gentoo Linux
Gentoo Linux solidity install instructions.
2017-06-08 00:20:15 +02:00
chriseth
243e389fd7 Merge pull request #2341 from ethernomad/patch-3
for free => automatically
2017-06-06 15:02:34 +02:00
Alex Beregszaszi
766df192b9 Include logo in intro 2017-06-05 11:25:48 +01:00
Alex Beregszaszi
5f4df5651b Import logo from browser-solidity#16e74469 2017-06-05 11:20:35 +01:00
Jonathan Brown
8595bc7122 for free => automatically
Getters still use gas when called from another contract, so they are not free.
2017-06-03 14:12:33 +07:00
Alex Beregszaszi
524a52660d Document keccak256 in assembly 2017-05-30 12:33:04 +01:00
chriseth
002df12d13 Merge pull request #2287 from ethereum/legacyAstCLI
add legacy/compact AST-format options to CLI
2017-05-29 14:24:55 +02: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
djudjuu
0f7a9e8149 add legacy/compact AST-format options to CL 2017-05-24 14:48:32 +02:00
Ron Gross
f80fc0f636 Fix space 2017-05-22 15:30:46 +03:00
Ron Gross
459a4a911b Fix link format 2017-05-22 15:25:08 +03:00
chriseth
b923196a85 Merge pull request #2277 from ethereum/chriseth-patch-1
Fix typo.
2017-05-17 14:28:55 +02:00
chriseth
2d8b866b59 Merge pull request #2278 from ethereum/chriseth-patch-2
Fix bug in example contract.
2017-05-17 14:26:02 +02:00
chriseth
cc9a99a63f Merge pull request #2221 from greggdourgarian/develop
minor punctuation, typo and clarity changes
2017-05-17 12:06:37 +02:00
chriseth
b4c6877a94 Merge pull request #2247 from jamesray1/develop
Wikipedia links for some terminology and grammar
2017-05-17 11:58:19 +02:00
chriseth
2c3eea7e42 Fix bug in example contract. 2017-05-17 11:30:45 +02:00
chriseth
a0d0776bbc Fix typo.
Fixes #2273
2017-05-17 11:20:46 +02:00
Micah Zoltu
071efc553b Improves clarity of block.timestamp 2017-05-12 22:13:45 -07:00
jamesray1
139fdb36c7 Update introduction-to-smart-contracts.rst 2017-05-10 15:26:17 +10:00
jamesray1
1d5c0ce9f4 Update introduction-to-smart-contracts.rst
Updated link for pragma.
2017-05-10 15:20:12 +10:00
jamesray1
347a4040e6 Update introduction-to-smart-contracts.rst
Grammar
This sentence was a bit confusing due to changing from it to they: "Contracts cannot access log data after it has been created, but they can be efficiently accessed from outside the blockchain.", however changing it to the following may sound awkward "Contracts cannot access log data after log data has been created, but log data can be efficiently accessed from outside the blockchain."

Also added links to terminology that may not be understood by lay readers.
2017-05-06 20:20:36 +10:00
chriseth
0582fcb93b Merge pull request #2194 from ethereum/removeerrorlabel
Remove error label / invalid jump label.
2017-05-05 14:25:43 +02:00
greggdourgarian
2ed1b3d6d2 remove extraneous 's' 2017-05-03 14:07:14 -05:00
greggdourgarian
d13a1f4f7b minor punctuation, typo and clarity changes 2017-05-03 12:24:00 -05:00
chriseth
9df7a6fa29 Update permalink for optimizer bug and fix release date. 2017-05-03 12:39:54 +02:00
chriseth
9fd34bf5c0 Update bug list. 2017-05-03 12:31:45 +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
chriseth
00933b99cc Merge pull request #2206 from ethereum/fixoptimizer
Constant optimizer fix
2017-05-03 11:54:11 +02:00
chriseth
794a390c34 Fix keys for bugs.json. 2017-05-03 11:09:21 +02:00
Alex Beregszaszi
c09f071ff6 Merge pull request #2211 from ethereum/jsonio-fixes
Follow the JSON I/O spec closely
2017-05-02 16:47:14 +01:00
Alex Beregszaszi
ed3ab3506a Follow the JSON I/O spec closely 2017-05-02 16:52:38 +02:00
chriseth
084ab4123f Merge pull request #2210 from ethereum/jsonio-remove-why3
Remove why3 from standard compiler
2017-05-02 16:43:15 +02:00
chriseth
1b15291af2 Merge pull request #2201 from FedericoCapello/patch-1
Update units-and-global-variables.rst (Typo)
2017-05-02 15:59:41 +02:00
Alex Beregszaszi
2871663cad Remove why3 from standard compiler 2017-05-02 14:49:13 +01:00
chriseth
d8b76e1eca Merge pull request #2172 from ethereum/docs-sar
Document how Solidity's SAR is different
2017-05-02 14:57:19 +02:00
chriseth
d87eb97895 Add entry to bug list. 2017-05-02 12:22:11 +02:00
Alex Beregszaszi
f77f2123f0 Merge pull request #2203 from JohnAllen/develop
Correct form-from typo in layout-of-source-files.rst
2017-05-02 09:38:37 +01:00
JohnAllen
daa8db81c8 Correct form-from typo in layout-of-source-files.rst 2017-05-01 14:00:27 -07:00
FedericoCapello
fabf15de9e Update units-and-global-variables.rst
Consistency of explanation.
2017-05-01 20:05:25 +02:00
AdrianClv
4658c4f28b Added Doxity in the Solidity Tools section 2017-04-29 17:22:01 +02:00
Paweł Bylica
fc3f40febe Add warning about SAR in docs 2017-04-28 14:35:25 +01:00
chriseth
28f10f4783 Remove error label / invalid jump label. 2017-04-28 13:14:52 +02:00
Alex Beregszaszi
cd29a0315d Update the gasEstimates in JSON I/O 2017-04-27 13:37:51 +01:00
Alex Beregszaszi
35f1cf92db Remove parentheses from around function return parameters 2017-04-27 10:08:02 +01:00
chriseth
2c1fb46bc3 Merge pull request #1711 from ethereum/asmfunctions
Assembly: Analysis stage for functions.
2017-04-26 17:47:48 +02:00
chriseth
a46a059e3a Document storage variable access. 2017-04-26 11:58:36 +02:00
Alex Beregszaszi
8a5feb8c49 Explain that bytecode depends on metadata 2017-04-25 18:29:51 +01:00
Alex Beregszaszi
6c9dcaf7ac Mention the order of the ABI in metadata 2017-04-25 18:29:50 +01:00
chriseth
0b2a05c84d Merge pull request #2160 from 0mkara/patch-2
Update atom-ethereum-interface name change
2017-04-24 19:22:01 +02:00
Alex Beregszaszi
4a3fb96381 Enable standard json in the docs 2017-04-24 11:34:02 +01:00
Omkara
cd5fc7a6d2 Update atom-ethereum-interface name change
atom-ethereum-interface is renamed to etheratom, virtual machine compatibility introduced and other updates
2017-04-23 09:03:12 +05:30
chriseth
1ac7056a1a Correct syntax and link to question. 2017-04-21 11:42:31 +02:00
Morgan
3fb0072105 Added link to example for ecrecover
This should be helpful for now until I can write up some documentation to include here
2017-04-21 01:39:14 -04:00
Alex Beregszaszi
6ae7a87b78 Rename ast to legacyAST in StandardCompiler 2017-04-20 19:38:00 +01:00
Alex Beregszaszi
8bf842050e Support --allow-paths in the CLI 2017-04-20 15:39:30 +01:00
chriseth
937397ed9c Merge pull request #2122 from nrchandan/patch-1
Update common-patterns.rst
2017-04-18 14:55:36 +02:00
chriseth
6ad7dcffce Merge pull request #2119 from ethereum/bugList
List of known bugs.
2017-04-18 13:48:53 +02:00
chriseth
82628a80cc Merge pull request #2125 from abrahamsangha/fix-typo-solidity-by-example
minor: fix formatting and grammar
2017-04-18 12:36:00 +02:00
chriseth
d093f42eb6 Merge pull request #2127 from morgansliman/patch-1
Update contracts.rst
2017-04-18 12:34:36 +02:00
chriseth
fd109bbe6f Update bugs.rst 2017-04-18 12:20:39 +02:00
chriseth
11d30ec04f Some changes after review. 2017-04-18 11:40:00 +02:00
Morgan
fb58809c20 Update contracts.rst 2017-04-17 21:41:28 -04:00
Andy Milenius
ab0a0ab05d Update index.rst 2017-04-14 19:01:57 -07:00
Abraham Sangha
98242f5409 minor: fix formatting and grammar 2017-04-14 19:05:53 -06:00
Chandan Kumar
66165ff753 Update common-patterns.rst 2017-04-14 09:27:14 +05:30
chriseth
10c32362ea Prefix all optimizer bug names by Optimizer. 2017-04-12 15:37:06 +02:00
chriseth
feacfcfd20 Typo and more explanation. 2017-04-12 15:35:25 +02:00
chriseth
a7e605a7a1 Create and update bugs by version list. 2017-04-12 15:20:07 +02:00
chriseth
291ece2bdb List of known bugs. 2017-04-12 12:23:34 +02:00
Alex Beregszaszi
92fd66e4b4 Document formattedMessage 2017-04-07 15:37:11 +01:00
Alex Beregszaszi
c22ba03417 Support selecting group of outputs 2017-04-07 15:34:38 +01:00
Alex Beregszaszi
fea26bc4ba Rename legacyAssemblyJSON to legacyAssembly 2017-04-07 15:33:13 +01:00
Alex Beregszaszi
b62a6949b5 Move the IR out of the EVM block in JSON IO 2017-04-07 15:32:59 +01:00
Alex Beregszaszi
594f207606 The metadata output is serialised 2017-04-07 15:32:58 +01:00
Alex Beregszaszi
b7368ce067 Fix input selector for evm 2017-04-07 15:32:55 +01:00
Alex Beregszaszi
ded7258b01 Swap key/value of methodIdentifiers 2017-03-30 11:12:14 +01:00
Alex Beregszaszi
f6828fc7c3 Reorder for readiability 2017-03-29 22:23:35 +01:00
Alex Beregszaszi
917175eedc Move opcodes into bytecode/deployedBytecode 2017-03-29 22:21:33 +01:00
Matt Searle
3d30294482 Fix typo in documentation
Spelling mistake
2017-03-28 21:18:35 +13:00
Matt Searle
ca3ceb4de2 Fix typo 2017-03-27 17:19:08 +13:00
Abraham Sangha
602ad1e605 small fixes 2017-03-22 12:57:42 -06:00
Alex Beregszaszi
d5102c1db7 Disallow constructor in interfaces 2017-03-17 17:06:52 +00:00
Alex Beregszaszi
2c4bce2d62 Disallow enums in interfaces 2017-03-17 17:06:52 +00:00
Alex Beregszaszi
3f1468142b Document interfaces 2017-03-17 17:06:51 +00:00
chriseth
58334cf4ac Merge pull request #1787 from ethereum/docs-gasvalue
Document the .value() and .gas() modifiers
2017-03-16 15:52:10 +01:00
Alex Beregszaszi
e7e22c703c Merge pull request #1785 from ethereum/docs-address
Document all address methods in the global variables section
2017-03-16 12:46:26 +00: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
e34a9600f2 Merge pull request #1791 from ethereum/docs-fixes
Mostly typo fixes in the documentation
2017-03-16 12:22:10 +00:00
chriseth
6ecfcbb686 Merge pull request #1784 from ethereum/docs-remix
Replace references to browser-solidity with Remix
2017-03-16 12:21:32 +01:00
Alex Beregszaszi
b053b6164e Fix typo (recieve to receive) 2017-03-16 11:20:39 +00:00
Alex Beregszaszi
18a37ed799 Document all address methods in the global variables section 2017-03-16 11:17:17 +00:00
Alex Beregszaszi
42f2623cd3 Fix list indentation 2017-03-16 00:43:30 +00:00
Alex Beregszaszi
4c34adb799 Add link to version pragma 2017-03-16 00:43:30 +00:00
Alex Beregszaszi
2d8b0fdc39 Fix inconsistent use of single backticks 2017-03-15 23:41:02 +00:00
Alex Beregszaszi
a0d6ac63cc Replace references to browser-solidity with Remix 2017-03-15 22:58:14 +00:00
chriseth
0c8a766146 Merge pull request #1698 from ethereum/exp-notation
Fix scientific notation in number literals
2017-03-15 14:55:45 +01:00
Alex Beregszaszi
07d775294b Document scientific notation in integer literals 2017-03-15 13:16:16 +00:00
Yoichi Hirai
d134fda0c0 Merge pull request #1729 from ethereum/constantvariables
Only allow pure expressions for constant state variables.
2017-03-15 10:03:35 +01:00
chriseth
47cd8964b8 Require and Assert. 2017-03-14 14:21:33 +01:00
chriseth
c65d506811 Documentation update. 2017-03-13 13:30:23 +01:00
chriseth
bdbd3b158e Extend documentation for constant state variables. 2017-03-13 13:30:23 +01:00
chriseth
592cec7e90 Disallow constants that are neither value types nor strings. 2017-03-13 13:30:23 +01:00
chriseth
4077e56a2f Documentation. 2017-03-13 13:30:23 +01:00
Remo Fürst
b5c17d7058 Fix delegation loop in Ballot example contract
fixes #1753
2017-03-08 22:45:27 +01:00
Yoichi Hirai
78f7dd2344 Merge pull request #1750 from ethereum/asmoctal
Disallow octal numbers in parser.
2017-03-08 12:24:22 +01:00
Yoichi Hirai
a1e350a4ae Merge pull request #1699 from ethereum/asmlabels
Assembly labels with stack information
2017-03-08 11:56:44 +01:00
chriseth
bb06569dc6 Disallow octal literals. 2017-03-07 12:34:32 +01:00
chriseth
14c1117098 Add keywords delete and for 2017-03-06 11:34:22 +01:00
Leonid Logvinov
0d8ae4a33a
Add IntelliJ plugin to Solidity integrations 2017-03-05 15:45:28 +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
chriseth
8c1d949d1a Remove stack annotations from documentation. 2017-03-03 15:41:02 +01:00
chriseth
c85f9257f8 Clarify stack height. 2017-03-03 15:41:02 +01:00
chriseth
f4f82615b1 Updated documentation. 2017-03-03 15:41:01 +01:00
Alex Beregszaszi
59514d8268 Remove obsolete .send() entry from FAQ 2017-02-24 00:18:18 +00:00
Alex Beregszaszi
c46c68dfd8 Prefer .transfer() over .send() in the documentation 2017-02-24 00:18:18 +00: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
0177d964b1 Merge pull request #1714 from dimorinny/develop
Add lost payable attribute to sample withdrawal pattern contract in docs
2017-02-22 12:05:40 +01:00
Mikko Ohtamaa
c9e4e1d7ca Downgrade instructions for Homebrew Solidity
Because 0.4.9+ causes a lot of havoc, breaking tools
2017-02-22 00:45:15 +02:00
Dmitriy Merkurev
a2f92033e7 add payable attribute 2017-02-21 22:44:18 +03:00
chriseth
811bb770c5 Change effect of assert to invalid opcode. 2017-02-16 15:54:17 +01:00
Alex Beregszaszi
d4da4ef35f Merge pull request #1684 from federicobond/sphinx-highlight
Update the sphinx highlighting rules
2017-02-13 18:38:13 +00:00
Federico Bond
75d59b1adb Update the sphinx highlighting rules 2017-02-13 12:05:03 -05:00
Alex Beregszaszi
28a7b1e019 Document revert() 2017-02-10 22:42:33 +00:00
Alex Beregszaszi
1fcad8b4ab Document revert() 2017-02-10 22:41:09 +00:00
Alex Beregszaszi
fd7ffedead Use different wording for assert 2017-02-10 21:41:40 +00:00
Alex Beregszaszi
39cd2214f2 Document user provided exceptions 2017-02-10 13:31:40 +00:00
Alex Beregszaszi
7f726de1cb Document assert() 2017-02-10 13:29:17 +00:00
Alex Beregszaszi
dc431fe1f6 Simplify the compiler API section (and remove pseudo code) 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
cd81e58e3b Drop the legacy assembly output 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
749db7608b Include language field in the JSON 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
10d3a591d4 Move file into sourceLocation 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
96677cd178 Update the AST output 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
9fa54db7bd Explain every contract output field 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
9fc017d10b Support linkReferences with length specified 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
a3340e210e Error list should have sourceLocation 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
c217bc2dca Updated EVM output 2017-02-08 23:41:48 +00:00
Alex Beregszaszi
4b19f560b8 Make contracts output two-level 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
627a2cec4d Update errors output 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
21a0228485 Include pseudo-code of compiler API 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
d46ec20f88 Change layout and include API, Input, Output sections 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
cbb668672f Add metadata.useLiteralContent option 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
4b5639bf63 Update output selection 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
82c0e4de1d Update settings section 2017-02-08 23:41:47 +00:00
Alex Beregszaszi
6e2cc081ec Update sources definition based on the metadata 2017-02-08 23:40:07 +00:00
Alex Beregszaszi
720cf20855 Place into a code block 2017-02-08 21:53:07 +00:00
Alex Beregszaszi
d9f14e7737 The metadata section has been moved, make only a reference to it 2017-02-08 21:53:07 +00:00
Alex Beregszaszi
559c4c7a45 Update the metadata JSON spec 2017-02-08 21:53:07 +00:00
Alex Beregszaszi
073871c248 Update the metadata JSON spec 2017-02-08 21:53:07 +00:00
Alex Beregszaszi
04089edc4e Add missing fields 2017-02-08 21:53:07 +00:00
Alex Beregszaszi
0b3f1a5378 Describe the ABI output field 2017-02-08 21:53:07 +00:00
Alex Beregszaszi
77b934c861 Update with https://pad.riseup.net/p/7x3G896a3NLA 2017-02-08 21:53:07 +00:00
chriseth
57662e1bf3 Add language and some minor corrections and clarifications. 2017-02-08 21:53:07 +00:00
chriseth
4fccb5fdac Document input description and metadata output. 2017-02-08 21:53:07 +00:00
chriseth
2ac766b18b Merge pull request #1643 from federicobond/patch-1
grammar.txt: Add rule for tuple destructuring
2017-02-08 19:53:23 +01:00
Federico Bond
1fc42d733d grammar.txt: Add rule for tuple destructuring 2017-02-08 12:00:30 -05:00
chriseth
94e5ab1e43 Merge branch 'develop' into docs-version 2017-02-07 12:26:02 +01:00
Alex Beregszaszi
82a512fb2f Add archlinux installation instructions 2017-02-06 18:23:49 +00:00
Alex Beregszaszi
e5e0eae057 Take documentation version numbers from CMake 2017-02-06 16:00:29 +00:00
Alex Beregszaszi
9f9807f95d Remove obsolete esoteric features section 2017-02-03 01:52:18 +00:00
RJ Catalano
60e884b0a3
clarified binaries installation
Signed-off-by: RJ Catalano <rj@monax.io>
2017-02-02 18:54:49 -06:00
RJ Catalano
f50caa967c
implement a build script
Signed-off-by: RJ Catalano <rj@monax.io>
2017-02-02 18:54:47 -06:00
Alex Beregszaszi
ace583d0a1 Rename accessor to getter 2017-02-03 00:17:21 +00:00
Will White
51a150e82a Other contracts can't write to a public variable
The removed words implied that other contracts can write to a public variable.
2017-02-02 15:19:27 +00:00
Alex Beregszaszi
821314aa27 Explain the difference between solc and solcjs 2017-02-02 11:04:38 +00:00
chriseth
c1a675da4f Merge pull request #1625 from ethereum/asmdocs
Integrate missed changes.
2017-02-01 09:05:20 +01:00
chriseth
a39adc44d4 Integrate missed changes. 2017-01-31 23:31:25 +01:00
chriseth
ffe4ce0891 Version update 2017-01-31 19:37:55 +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
f610ba77a4 Simplify length rule. 2017-01-26 13:58:24 +01:00
chriseth
d855eaab13 Documentation. 2017-01-24 23:37:48 +01:00
Yoichi Hirai
c382ce1f6b Merge pull request #1593 from ethereum/identifierRegex
Correct identifier regex
2017-01-23 14:27:53 +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
chriseth
0b01678bc3 Correct identifier regex 2017-01-20 19:29:43 +01:00
chriseth
ed12b97761 Merge pull request #1574 from ethereum/docs-version
Explain how version numbers are built
2017-01-17 15:34:41 +01:00
Alex Beregszaszi
2bf89776ae Update copyright date in docs 2017-01-17 13:08:22 +00:00
Alex Beregszaszi
592c692bce Mention how our version maps to Semver 2017-01-17 13:01:55 +00:00
Alex Beregszaszi
9f9b7fb6f0 Explain how version numbers are built 2017-01-17 12:39:30 +00:00
Rhett Aultman
6ecb4aa36f Add git submodule init to build instructions (#1569) 2017-01-17 08:14:53 +01:00
Nicola
79e5772b8a Update SolidityLexer.py (#1567)
Added number unit keywords
2017-01-16 10:26:09 +01:00
Nicola
fb5583857a Update SolidityLexer.py
'payable' added as a keyword
2017-01-13 15:40:46 +01:00
chriseth
10c2df8b33 Update version to 0.4.9. 2017-01-13 13:56:55 +01:00
chriseth
bde0b40634 Merge pull request #1479 from ethereum/function_variable_mixin
Disallow mixin of functions and attributes under the same name
2017-01-13 09:36:00 +01:00
Anders Brownworth
5e29b4cde2 Re-word somewhat bumpy sentence to be more clear. 2017-01-11 13:13:11 -05:00
Yoichi Hirai
bd6e65a89c
docs: document the resriction about a function and an event of the same name, and so on 2017-01-11 18:28:11 +01:00
Federico Bond
26eff0e0d8 grammar.txt: Replace Identifier for Typename in NewExpression 2017-01-11 01:35:29 -03:00
Federico Bond
c15b0fb596 grammar.txt: Add named function arguments 2017-01-11 01:33:55 -03:00
Federico Bond
d61b911a3a grammar.txt: Move StorageLocation? up to VariableDeclaration 2017-01-11 01:33:33 -03:00
chriseth
26a90af4d2 Merge pull request #1330 from ethereum/assemblyDef
Assembly definition.
2017-01-10 17:56:58 +01:00
chriseth
ceac5c5a0c Move explanatory sections and other small changes. 2017-01-09 15:15:30 +01:00
chriseth
e92af89ec8 Typos and clarifications. 2017-01-04 12:58:35 +01:00
chriseth
4bc934abce More information about switch, loops and functions. 2017-01-04 12:34:44 +01:00
Yoichi Hirai
9128e73b03
docs: clarify what are considered as absolute paths 2017-01-03 18:18:16 +01:00
chriseth
9683cfea6d Update to new assembly specification. 2017-01-03 15:19:14 +01:00
chriseth
0bd8c204f0 Assembly definition. 2017-01-03 14:13:49 +01:00
chriseth
50c1cfa348 Merge pull request #1527 from federicobond/elementarytypenameconversion
Add ElementaryTypeNameExpression to grammar.txt
2017-01-03 10:36:16 +01:00
chriseth
a45fdf4a0f Merge pull request #1538 from ethereum/multi-keys
doc: rephrase the case when two remapping keys are applicable
2017-01-03 10:30:00 +01:00
chriseth
43a5d11f9a Merge pull request #1526 from federicobond/docs-grammar
Add parsers and grammars to documentation
2017-01-03 09:46:39 +01:00
Yoichi Hirai
c014448397
doc: rephrase the case when two remapping keys are applicable
Fixes #1536
2017-01-02 16:55:29 +01:00
Federico Bond
82b9797428 Add ElementaryTypeNameExpression to grammar.txt 2017-01-02 11:45:12 -03:00
Federico Bond
04af994bf5 Add parsers and grammars to documentation 2017-01-02 10:13:41 -03:00
chriseth
e079b1c53f Merge pull request #1530 from federicobond/remove-syntax-highlighting
Remove wrong syntax highlighting in docs
2017-01-02 12:26:47 +01:00
chriseth
75a596aba2 Merge pull request #1529 from federicobond/right-shifts
Add missing right-hand side expression for shifts
2017-01-02 12:25:30 +01:00
Federico Bond
6955b8f7b9 Remove wrong syntax highlighting in docs 2016-12-28 17:32:10 -03:00
Federico Bond
1f80dbb39a Add missing right-hand side expression for shifts 2016-12-28 12:53:40 -03:00
Federico Bond
28550ac9ff Add UserDefinedTypeName to grammar.txt 2016-12-27 23:08:57 -03:00
Federico Bond
890a8818b5 Add unimplemented functions to grammar 2016-12-26 22:57:00 -03:00
Federico Bond
507525be5f Fix NumberLiteral rule for hex numbers 2016-12-24 13:10:51 -03:00
Federico Bond
2a7b01982c Fix StorageLocation position for ArrayTypeName rule in grammar 2016-12-24 13:00:11 -03:00
chriseth
3a88580512 Merge pull request #1518 from mcoblenz/patch-2
Corrected explanation of recursive contract creation
2016-12-22 16:54:04 +01:00
Michael Coblenz
c163a219de Corrected explanation per discussion. 2016-12-22 10:35:58 -05:00
Federico Bond
5148de3ed7 Fix mapping syntax in docs 2016-12-21 19:27:31 -03: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
7ce7d3e74c Update develop version. 2016-12-15 14:03:31 +01:00
chriseth
e97ba77a45 Merge pull request #1508 from ethereum/multiurls
Use multiple URLs for metadata.
2016-12-14 17:22:25 +01:00
chriseth
f7e219ed91 Update documentation. 2016-12-13 16:43:16 +01:00
chriseth
56a027bedc Use multiple URLs for metadata. 2016-12-13 16:37:48 +01:00
chriseth
cc11739928 Documentation. 2016-12-12 11:12:12 +01:00
chriseth
84443eb560 Merge pull request #1351 from ethereum/truncate_bit
Truncate a boolean from calldata into one bit
2016-12-08 16:15:35 +01:00
Federico Bond
926a252961 Remove duplicate Identifier from AssemblyItem grammar rule 2016-12-07 22:00:16 -03:00
chriseth
b201e148fa Merge pull request #1465 from ethereum/missing_keywords
document missing keywords
2016-12-06 13:47:30 +01:00
chriseth
34327c5d8a Merge pull request #1394 from ethers/patch-1
styleguide: Order of Functions
2016-12-05 12:48:06 +01:00
Yoichi Hirai
3149b7b210
docs: `var x = 1/4` is not working, so remove description about it 2016-12-02 15:28:19 +01:00
Yoichi Hirai
d94fd636b7
grammar.txt: define inline assembly 2016-12-02 12:20:06 +01:00
Yoichi Hirai
43b56a61aa
parsing: default and null are reserved keywords 2016-12-02 11:52:11 +01:00
Yoichi Hirai
50bcc60e6e
grammar.txt: remove a space from payable keyword 2016-12-02 11:52:11 +01:00
Alex Beregszaszi
ea7a6520b2 Fix documentation errors
Subheadings must use consistent format across a file.

The metadata with comments cannot be parsed as JSON.
2016-12-01 16:03:59 +01:00
Alex Beregszaszi
35325ee7c3 Update metadata documentation 2016-12-01 16:03:59 +01:00
chriseth
6a7ff039df Use CBOR encoding. 2016-12-01 16:03:59 +01:00
chriseth
1316c0c872 Fix documentation error. 2016-12-01 16:03:59 +01:00
chriseth
91ecc4533d Add swarm hash to the end of the bytecode. 2016-12-01 16:03:59 +01:00
chriseth
9b46752cc2 Documentation. 2016-12-01 16:03:59 +01:00
Alex Beregszaszi
e7760417e8 docs: rename overflow to variable cleanup 2016-12-01 12:14:21 +00:00
Yoichi Hirai
3e8a017d42
docs: describe the form of number literals
This is a part of #1390
2016-12-01 10:59:42 +01:00
Alex Beregszaszi
868a8a8fa0
docs: update overflow cleanup wording 2016-11-30 17:42:45 +01:00
Yoichi Hirai
5d7a1fda39
docs: remove the word overflow when we are talking about invalid values 2016-11-30 17:42:16 +01:00
Yoichi Hirai
547deec4be
codegen: clean any data from the input 2016-11-30 17:42:03 +01:00
Yoichi Hirai
7959ee49be
docs: describe when and how overflown values are cleaned 2016-11-30 17:41:58 +01:00
Alex Beregszaszi
2962426d53 Include the grammar verbatim in the documentation 2016-11-30 12:20:13 +00:00
Alex Beregszaszi
83892399f0 Explain how to run soltest 2016-11-28 20:33:09 +00:00
chriseth
b179dfd101 Merge pull request #1438 from ethereum/docker
Docker documentation.
2016-11-25 16:57:29 +01:00
chriseth
cf4e0549c3 Mention nightly. 2016-11-25 16:21:17 +01:00
chriseth
d52f191fec Merge pull request #1431 from ethereum/doc-literals
docs: a bit more about literals
2016-11-25 15:33:08 +01:00
Yoichi Hirai
a755805879 Update types.rst 2016-11-25 14:51:38 +01:00
Yoichi Hirai
a747f1d2c3
docs: clarify how many number literal types are there 2016-11-25 10:54:40 +01:00
Yoichi Hirai
76dd85edfa
docs: a bit more about literals 2016-11-25 10:47:09 +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
chriseth
6b95303998 Docker documentation. 2016-11-24 23:46:52 +01:00
chriseth
19c9e85a20 Merge pull request #1432 from ethereum/override-types
docs: add a description about the types of parameters of overriding functions
2016-11-24 19:47:27 +01:00
chriseth
e461904854 Merge pull request #1413 from ethereum/calldata-layout
docs: add a section about calldata layout
2016-11-24 11:05:50 +01:00
Yoichi Hirai
c33b098e55
docs: add a description about the types of parameters of overriding functions 2016-11-23 16:40:57 +01:00
chriseth
b1d2d07e60 Merge pull request #1407 from escull638/patch-1
Fixed spelling mistake in Logs
2016-11-23 14:55:04 +01:00
chriseth
ec2e882376 Merge pull request #1408 from ethereum/keytype
docs: some types cannot be the key type for mappings
2016-11-23 14:54:46 +01:00
Yoichi Hirai
452dbef3dc
docs: add a section about calldata layout
Part of #1390
2016-11-23 13:55:37 +01:00
Yoichi Hirai
475009b93d Merge pull request #1411 from ethereum/function-type-docs
Fix function type examples
2016-11-23 11:34:40 +01:00
chriseth
a65473b371 Set version to 0.4.7 2016-11-22 15:44:48 +01:00
ethers
217f33c252 Clearer language as suggested by @axic 2016-11-22 00:47:58 -08:00
chriseth
73eb0235b4 Fix examples and add explanation. 2016-11-21 17:12:33 +01:00
Alex Beregszaszi
81eea45c2d Fix oracle callback example 2016-11-21 13:16:35 +00:00
Alex Beregszaszi
42a84946d2 Fix function type examples 2016-11-21 13:11:43 +00:00
Yoichi Hirai
b24f4a4d00
docs: some types cannot be the key type for mappings 2016-11-21 12:47:40 +01:00
escull638
74ab62de14 Fixed spelling mistake in Logs
Changed 'maps all they way up to the block level' to 'maps all the way up to the block level'.
2016-11-21 11:26:58 +00:00
chriseth
3f48c655e5 Update version. 2016-11-21 11:54:41 +01:00
RJ
cc07a918e3 Typo 2016-11-18 12:34:43 -06:00
ethers
feebe3e755 Fallback functions don't always have to be payable 2016-11-17 18:14:26 -08:00
ethers
1d9aee97c2 styleguide: Don't include a whitespace in the fallback function 2016-11-17 18:13:33 -08:00
ethers
549bca1494 Don't include a whitespace in fallback function 2016-11-17 18:09:22 -08:00
ethers
39559c1bb6 styleguide: Ordering of functions
Ordering would help readers identify which functions they can call, and to find the "specials" (constructor and fallback function).  Mixing the "specials" in the middle of the code, as well as internal functions between external and public functions, don't help readers

Based on https://github.com/ConsenSys/MultiSigWallet/issues/19
2016-11-17 18:06:28 -08:00
chriseth
2defe4dcef Documentation: Style update 2016-11-16 14:37:19 +01:00
chriseth
eeae91c2a2 Update documentation. 2016-11-16 14:37:19 +01:00
chriseth
830f14c3a3 Fix documentation formatting. 2016-11-16 14:37:19 +01:00
chriseth
f7a62c1e69 Mention "payable" in the documentation. 2016-11-16 14:37:18 +01:00
chriseth
0e5507c78c Updates to the documentation. 2016-11-16 14:37:18 +01:00
chriseth
502cc319d7 Documentation examples. 2016-11-16 14:37:18 +01:00
chriseth
679ea2820f Part of the documentation. 2016-11-16 14:37:18 +01: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
chriseth
9383a18c57 Merge pull request #1334 from ethereum/enum_conversion
check enum value range during conversion
2016-11-14 13:32:38 +01:00
ethers
04eb6e85f2 Remove named return
Named returns are not explained in this introduction; they also provide little value in these examples.
2016-11-12 20:02:43 -08:00
Yoichi Hirai
effca18250
docs: udpate description of enums about #1334 2016-11-11 17:48:03 +01: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
chriseth
dd0879fe43 Merge pull request #1316 from federicobond/clarify-doc
Add clarification for block.blockhash
2016-11-04 11:43:49 +01:00
varunagarwal315
364698255a Update solidity-by-example.rst
added the space. Sorry, just slipped my mind.
2016-11-03 22:25:19 +05:30
varunagarwal315
38e0b0a5fa Update solidity-by-example.rst
made changes suggested to simplify code. Hope this is enough

Thanks
2016-11-03 17:42:05 +05:30
varunagarwal315
4c105dba07 Update solidity-by-example.rst
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.
2016-11-03 13:02:25 +05:30
Federico Bond
739ee88fa7 Add clarification for block.blockhash 2016-11-01 20:03:20 -03:00
chriseth
4f9741c0cf Version update in develop. 2016-11-01 09:58:02 +01:00
chriseth
49089f65ba Merge pull request #1297 from Thrillberg/patch-2
Update installing-solidity.rst
2016-10-27 13:18:18 +02:00
Eric Tillberg
d7cfc6399b Update installing-solidity.rst 2016-10-26 13:43:51 -04:00
Eric Tillberg
e8b45d26fb Update index.rst 2016-10-26 13:23:53 -04:00
chriseth
5ddb92b8cc Version bump for develop. 2016-10-25 15:39:38 +02:00
Alex Beregszaszi
024e3f4064 Mapping-in-mapping can have accessors too 2016-10-19 14:16:01 +01:00
Alex Beregszaszi
d4ad814bf3 Explain accessors on arrays 2016-10-19 14:13:48 +01:00
Alex Beregszaszi
448f1fba53 FAQ: remove address(this) section (already explained elsewhere) 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
9bec1e1efd FAQ: remove event section (already explained elsewhere) 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
5f89e1a2ac Merge the constructor sections 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
f8795afc70 Mention why Homestead was different for libraries 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
607f82ce9e FAQ: remove visibility section (already explained elsewhere) 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
c6e7475f05 FAQ: remove create example (already explained elsewhere 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
fcba4d927c Merge the documentation about mappings 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
1b3713742f Document constant functions 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
f0f2d5a612 FAQ: remove removal of external accounts 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
b420dbf505 Improve the description of Solidity 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
b4f24721b5 FAQ: remove modifier section 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
4d4b9bc68e FAQ: remove compilation section 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
c41effd7c8 Merge the selfdestruct sections 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
3413b8b7b3 Update changelog link 2016-10-19 14:02:50 +01:00
Alex Beregszaszi
76c856397a Minor documentation fixes 2016-10-19 14:02:50 +01:00
Lefteris Karapetsas
806d94c214 Docs: Change contract init with value section
After solidity 0.4.0 we need to make the constructor `payable` if we are
to provide value during contract creation.
2016-10-17 19:14:21 +02:00
chriseth
1f0f600878 Merge pull request #1217 from ethereum/instruction_table
Small points on the instruction table
2016-10-14 11:55:19 +02:00
chriseth
0635b6e008 Merge pull request #1195 from ethereum/memory-doc
Document memory layout
2016-10-14 11:13:36 +02:00
Alex Beregszaszi
9521188bde Mention that memory is organised as 256-bit words 2016-10-13 19:00:57 +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
chriseth
5e75cae28a Merge pull request #1203 from ethereum/exlpainupforgrabs
Explain up-for-grabs issues.
2016-10-13 17:07:14 +02:00
Yoichi Hirai
8ddef7a2dd Merge pull request #1185 from ethereum/grammar-doc
Add link to grammar.txt in the documentation
2016-10-13 16:38:57 +02:00
chriseth
e268b5fa3e Explain up-for-grabs issues. 2016-10-13 15:10:12 +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
Alex Beregszaszi
66c6c74699 Explain how scratch space affects the free memory pointer 2016-10-12 09:15:06 +01:00
Alex Beregszaszi
3d12c2ddc7 Merge the two EVM memory introduction sections 2016-10-12 09:15:06 +01: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
Yoichi Hirai
03ef5bfd5e Various fixes based on comments on #1167 2016-10-12 09:35:05 +02:00
Yoichi Hirai
8f59ec791e English clarifications
mostly based on suggestions by @axic
2016-10-12 09:35:05 +02:00
Yoichi Hirai
618410de11 Adding "When Solidity Throws" section in the documentation 2016-10-12 09:35:05 +02:00
Alex Beregszaszi
3f70e4879f Add link to grammar.txt in the documentation 2016-10-11 13:46:14 +01:00
Alex Beregszaszi
f0524ed45a Document memory layout 2016-10-11 13:20:58 +01:00
Alex Beregszaszi
70201e9273 Document the reserved keywords 2016-10-06 22:37:57 +01:00
Alex Beregszaszi
111d33d7ac Rename sha3 to keccak256 in the documentation 2016-10-06 16:34:41 +02:00
Anubhav singh
205b5dd1e2 A typo fix 2016-10-05 00:36:13 +05:30
D-Nice
b4c2880bff Typo Fix
On line 126, though of changed to thought of.
2016-10-03 17:28:03 -04:00
Shruti Appiah
1edcf61b9c list formatting 2016-09-23 12:27:23 -04:00
chriseth
0165814ec4 Bump version in develop. 2016-09-17 15:27:46 +02:00
chriseth
6a80511ffb Merge pull request #1072 from ethereum/versioning
Document versioning behaviour
2016-09-15 15:13:09 +02:00
Alex Beregszaszi
3cd760446e Split versioning into two sections 2016-09-14 00:41:34 +01:00
Nick Savers
ba7199720d Update Solidity docs version to 0.4.1 2016-09-09 21:36:59 +02:00
Alex Beregszaszi
fb856c3f8d Document versioning behaviour 2016-09-09 16:07:57 +01: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
chriseth
2f133b99be Merge pull request #1021 from ethereum/assembly-docs
Fix the return value of call in inline assembly
2016-09-06 12:55:59 +02:00
Alex Beregszaszi
a6c35c08f5 Fix the return value of call in inline assembly 2016-09-06 11:19:46 +01:00
Raghav Dua
fe3ef7f09c typo 2016-09-06 14:54:06 +05:30
Yoichi Hirai
e2b787cdd0 Merge pull request #1005 from ethereum/modifierbody
Require ";" after "_"
2016-09-05 18:28:32 +02:00
Raghav Dua
7f64984bb1 add solium to "Available Solidity Integrations" 2016-09-05 19:19:45 +05:30
chriseth
02984b8de1 Require ";" after "_" 2016-09-05 14:54:50 +02:00
Dimitry
183cd70c47 add "pragma solidity ^0.4.0;" to code examples 2016-09-05 14:54:54 +03:00
chriseth
7f5ab9a616 Typo. 2016-09-01 00:03:02 +02:00
chriseth
3c412ed2f6 Version pragma. 2016-09-01 00:02:51 +02:00
chriseth
52d9f89712 Merge pull request #951 from Denton-L/interesting-case
Document use of smaller storage variables
2016-08-31 22:37:05 +02:00
chriseth
18abafe029 Merge pull request #960 from Denton-L/change-else-style
Change else style
2016-08-31 22:34:44 +02:00
chriseth
6106bf98bb Merge pull request #969 from Denton-L/fix-documentation
Fix bad syntax
2016-08-30 16:31:11 +02:00
chriseth
79f9a04236 Merge pull request #954 from chriseth/fallbackThrows
Fallback throws
2016-08-30 16:09:41 +02:00
chriseth
99862d15fe Merge pull request #972 from Denton-L/document-sha3
Document constant behaviour for hashes
2016-08-30 15:48:40 +02:00
chriseth
9a91bd80ab Clarify warning. 2016-08-30 15:37:10 +02:00
chriseth
eb241ff1b3 Documentation. 2016-08-30 15:32:28 +02:00
Denton Liu
ce45400060 Fix typo from second to seconds 2016-08-29 15:47:31 -04:00
Denton Liu
8b488e3ee4 Fix typo 2016-08-29 15:36:50 -04:00
Denton Liu
6a6976dc19 Document constant behaviour for hashes 2016-08-29 15:12:35 -04:00
Denton Liu
5b790fbfec Fix bad syntax 2016-08-29 14:22:52 -04:00
Bob Summerwill
29b8965b95 Merge pull request #968 from Denton-L/contributing
Update README to link to new contribution section
2016-08-29 11:19:21 -07:00
Denton Liu
30f1288537 Update README to link to new contribution section 2016-08-29 14:05:46 -04:00
Bob Summerwill
0b89e1e98c Merge pull request #964 from Denton-L/fix-documentation
Fix documentation
2016-08-29 10:36:15 -07:00
Denton Liu
4b74bf799c Create contribution guidelines 2016-08-29 13:28:33 -04:00
Denton Liu
be86a2af9e Fix line length 2016-08-29 11:00:11 -04:00
Denton Liu
dd543d4602 Fix selfdestruct documentation 2016-08-29 10:27:14 -04:00
Denton Liu
eea4b63b44 Fix syntax for Windows batch file 2016-08-29 10:25:10 -04:00
Denton Liu
9ace0ca310 Clarify typecasting 2016-08-26 17:13:45 -04:00
Denton Liu
f125b2813e Clean up contracts.rst 2016-08-26 17:13:45 -04:00
Denton Liu
f55fb808e9 Fix grammar error 2016-08-26 17:02:49 -04:00
Denton Liu
af2e844062 Cleanup docs 2016-08-26 17:02:42 -04:00
Bob Summerwill
d14d7109b6 Merge pull request #946 from bobsummerwill/build_from_source_docs
Updated Solidity documentation's "building from source" section
2016-08-26 13:17:52 -07:00
Bob Summerwill
deb95b617d Tweaks as suggested by chriseth.
I will commit this as-is, because it has been pending for a few days over minor issues.
We will continue to iterate on this.
2016-08-26 13:17:31 -07:00
Denton Liu
532266b89e Use new style for the docs 2016-08-26 13:33:42 -04:00
Denton Liu
f1e6bc2eaa Update style-guide to use new style 2016-08-26 13:33:42 -04:00
Denton Liu
d905f0e85b Write about struct members as well 2016-08-26 13:28:44 -04:00
Denton Liu
2d834f723a Write about multiple reads and writes 2016-08-26 13:25:57 -04:00
Denton Liu
89489da4cc Fix typo 2016-08-26 13:25:22 -04:00
Denton Liu
cb0b2286c1 Added library keyword 2016-08-26 11:18:28 -04:00
Denton Liu
b0d9da05cf Added ufixed and fixed keywords 2016-08-26 11:18:28 -04:00
chriseth
83160d56f3 Merge pull request #953 from Denton-L/fallback-stuff
Write about what fallback functions cannot do
2016-08-26 17:01:38 +02:00
Denton Liu
8c3b1334ae Add "Sending Ether" 2016-08-26 10:31:57 -04:00
chriseth
21b6aa92ff Disallow fallback function to return values. 2016-08-26 00:07:50 +02:00
Denton Liu
f5989fb5e0 Correct spacing 2016-08-25 15:44:16 -04:00
Denton Liu
c276086f3f Write about what fallback functions cannot do 2016-08-25 15:43:04 -04:00
Denton Liu
0268cbddc7 Document use of smaller storage variables 2016-08-25 13:20:54 -04:00
chriseth
f329d5e772 Merge pull request #925 from mocamircea/patch-10
Update contracts.rst
2016-08-25 18:06:30 +02:00
Mircea Moca
55be44dd5f Update contracts.rst
I left the example with contract C only, showing the access specifiers discussed at 186-188. The specifier of data is left public since nothing is related to accessor functions now.

Added a separate example with contracts C, D and E to show specifier's effect. 

Added a separate example to prove the synthesizing of accessor functions.

Added a new example to show the internal/external call of the accessor, according to existent discussion.
2016-08-25 11:43:17 +03:00
chriseth
c2665dc2fe Merge pull request #913 from chriseth/auction
Updated the function withdraw() in the SimpleAuction and BlindAuction…
2016-08-24 23:17:04 +02:00
Bob Summerwill
d49cfebbf7 Updated Solidity documentation's "building from source" section.
It now references install_deps.sh/.bat, and also adds instructions for Windows.
Cherry picked some further tweaks from Denton-L.  Thanks :-)
2016-08-24 14:06:36 -07: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
89004edb2f Add comma 2016-08-24 11:43:56 -04:00
Denton Liu
41ad2110c2 Fix control-structures 2016-08-24 11:43:56 -04:00
Denton Liu
1655f3b7bf Update contracts.rst 2016-08-24 11:43:55 -04:00
Denton Liu
4bd96d9382 Fix description about how blocks work 2016-08-24 11:43:55 -04:00
Denton Liu
c65735fc19 Change XXX bit to XXX-bit 2016-08-24 11:43:55 -04:00
Denton Liu
72f2799556 Fix typo 2016-08-24 11:43:55 -04:00
Denton Liu
c58e460ba2 Change example code formatting 2016-08-24 11:43:55 -04:00
Denton Liu
02a72871d2 Change capitalisation 2016-08-24 11:43:55 -04:00
Denton Liu
ac799aff0e Remove trailing whitespaces 2016-08-24 11:43:55 -04:00
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
Mircea Moca
01dc055d42 Update contracts.rst
I think it's more clear now and without the risk of mentioning the yet discussed accessor concept
2016-08-19 17:47:57 +03: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
Alex Darby
41eaf3a0cc Updated the function withdraw() in the SimpleAuction and BlindAuction contracts to not use a 'throw' if a address send() fails. 2016-08-18 18:00:30 +02:00
Mircea Moca
ee51894e73 Update contracts.rst
Extended example according to the discussed stuff, clarification & typos
2016-08-18 14:16:01 +03: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