aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-09-06 21:59:49 +0800
committerGitHub <noreply@github.com>2016-09-06 21:59:49 +0800
commit453490cb61002622fadddf5838d29a8483f364ae (patch)
tree2d5ff5cddbf8fd73afe75a516998b9890b6cf86e /docs/solidity-by-example.rst
parent462fc84e530a6e740dfc8bb92bbd5ba82862cbb2 (diff)
parent183cd70c47e27f2cec34512757860193104f674b (diff)
downloaddexon-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/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index b8fa4a73..1eefa4d4 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -36,6 +36,8 @@ of votes.
::
+ pragma solidity ^0.4.0;
+
/// @title Voting with delegation.
contract Ballot {
// This declares a new complex type which will
@@ -208,6 +210,8 @@ activate themselves.
::
+ pragma solidity ^0.4.0;
+
contract SimpleAuction {
// Parameters of the auction. Times are either
// absolute unix timestamps (seconds since 1970-01-01)
@@ -377,6 +381,8 @@ high or low invalid bids.
::
+ pragma solidity ^0.4.0;
+
contract BlindAuction {
struct Bid {
bytes32 blindedBid;
@@ -543,6 +549,8 @@ Safe Remote Purchase
::
+ pragma solidity ^0.4.0;
+
contract Purchase {
uint public value;
address public seller;