add "pragma solidity ^0.4.0;" to code examples

This commit is contained in:
Dimitry
2016-09-05 14:54:54 +03:00
parent 341c9436a8
commit 183cd70c47
9 changed files with 96 additions and 0 deletions
+8
View File
@@ -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;