diff options
author | chriseth <chris@ethereum.org> | 2016-09-06 21:59:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 21:59:49 +0800 |
commit | 453490cb61002622fadddf5838d29a8483f364ae (patch) | |
tree | 2d5ff5cddbf8fd73afe75a516998b9890b6cf86e /docs/common-patterns.rst | |
parent | 462fc84e530a6e740dfc8bb92bbd5ba82862cbb2 (diff) | |
parent | 183cd70c47e27f2cec34512757860193104f674b (diff) | |
download | dexon-solidity-453490cb61002622fadddf5838d29a8483f364ae.tar.gz dexon-solidity-453490cb61002622fadddf5838d29a8483f364ae.tar.zst dexon-solidity-453490cb61002622fadddf5838d29a8483f364ae.zip |
Merge pull request #1003 from winsvega/docs
add "pragma solidity ^0.4.0;" to code examples
Diffstat (limited to 'docs/common-patterns.rst')
-rw-r--r-- | docs/common-patterns.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/common-patterns.rst b/docs/common-patterns.rst index 0894aae2..e56e7a6c 100644 --- a/docs/common-patterns.rst +++ b/docs/common-patterns.rst @@ -28,6 +28,8 @@ become the new richest. :: + pragma solidity ^0.4.0; + contract WithdrawalContract { address public richest; uint public mostSent; @@ -68,6 +70,8 @@ This is as opposed to the more intuitive sending pattern. :: + pragma solidity ^0.4.0; + contract SendContract { address public richest; uint public mostSent; @@ -131,6 +135,8 @@ restrictions highly readable. :: + pragma solidity ^0.4.0; + contract AccessRestriction { // These will be assigned at the construction // phase, where `msg.sender` is the account @@ -270,6 +276,8 @@ function finishes. :: + pragma solidity ^0.4.0; + contract StateMachine { enum Stages { AcceptingBlindedBids, |