diff options
author | chriseth <chris@ethereum.org> | 2017-02-24 17:39:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 17:39:55 +0800 |
commit | 92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6 (patch) | |
tree | 4f5d35f34c7598e0640576376d9e4544378ed0f8 /docs | |
parent | dcc16c81e26f31141ae766096873b5fd7741cdf5 (diff) | |
parent | bec3c6fab6bf02aea5664be4423f45e98db22e8e (diff) | |
download | dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.tar dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.tar.gz dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.tar.bz2 dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.tar.lz dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.tar.xz dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.tar.zst dexon-solidity-92bf5154fdcf0dfee40bfb5795729a4a9fa71dd6.zip |
Merge branch 'develop' into fixNoMobile
Diffstat (limited to 'docs')
-rw-r--r-- | docs/common-patterns.rst | 2 | ||||
-rw-r--r-- | docs/installing-solidity.rst | 18 |
2 files changed, 18 insertions, 2 deletions
diff --git a/docs/common-patterns.rst b/docs/common-patterns.rst index fa5e68a6..a2d7ce71 100644 --- a/docs/common-patterns.rst +++ b/docs/common-patterns.rst @@ -81,7 +81,7 @@ This is as opposed to the more intuitive sending pattern: mostSent = msg.value; } - function becomeRichest() returns (bool) { + function becomeRichest() payable returns (bool) { if (msg.value > mostSent) { // Check if call succeeds to prevent an attacker // from trapping the previous person's funds in diff --git a/docs/installing-solidity.rst b/docs/installing-solidity.rst index 42905ede..fb405475 100644 --- a/docs/installing-solidity.rst +++ b/docs/installing-solidity.rst @@ -102,6 +102,22 @@ We will re-add the pre-built bottles soon. brew install solidity brew linkapps solidity +If you need a specific version of Solidity you can install a +Homebrew formula directly from Github. + +View +`solidity.rb commits on Github <https://github.com/ethereum/homebrew-ethereum/commits/master/solidity.rb>`_. + +Follow the history links until you have a raw file link of a +specific commit of ``solidity.rb``. + +Install it using ``brew``: + +.. code:: bash + + brew unlink solidity + # Install 0.4.8 + brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/77cce03da9f289e5a3ffe579840d3c5dc0a62717/solidity.rb .. _building-from-source: @@ -264,4 +280,4 @@ Example: 3. a breaking change is introduced - version is bumped to 0.5.0 4. the 0.5.0 release is made -This behaviour works well with the version pragma.
\ No newline at end of file +This behaviour works well with the version pragma. |