Browse Source

add pragmas and get tests to run

Michael J. Curry 9 years ago
parent
commit
5c07cd148d

+ 1 - 0
contracts/LimitFunds.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 contract LimitFunds {
 
   uint LIMIT = 5000;

+ 1 - 0
contracts/examples/BadArrayUse.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 import '../PullPayment.sol';
 
 // UNSAFE CODE, DO NOT USE!

+ 1 - 0
contracts/examples/BadFailEarly.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 // UNSAFE CODE, DO NOT USE!
 
 contract BadFailEarly {

+ 1 - 0
contracts/examples/BadPushPayments.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 // UNSAFE CODE, DO NOT USE!
 
 contract BadPushPayments {

+ 1 - 0
contracts/examples/GoodArrayUse.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 import '../PullPayment.sol';
 
 contract GoodArrayUse is PullPayment {

+ 2 - 0
contracts/examples/GoodFailEarly.sol

@@ -1,3 +1,5 @@
+pragma solidity ^0.4.0;
+
 contract GoodFailEarly {
 
   uint constant DEFAULT_SALARY = 50000;

+ 1 - 0
contracts/examples/GoodPullPayments.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 contract GoodPullPayments {
   address highestBidder;
   uint highestBid;

+ 2 - 0
contracts/examples/ProofOfExistence.sol

@@ -1,3 +1,5 @@
+pragma solidity ^0.4.0;
+
 import "../Rejector.sol";
 
 /*

+ 2 - 0
contracts/examples/PullPaymentBid.sol

@@ -1,3 +1,5 @@
+pragma solidity ^0.4.0;
+
 import '../PullPayment.sol';
 
 contract PullPaymentBid is PullPayment {

+ 2 - 0
contracts/examples/PullPaymentCapableExample.sol → contracts/examples/PullPaymentExample.sol

@@ -1,3 +1,5 @@
+pragma solidity ^0.4.0;
+
 import '../PullPayment.sol';
 
 // Example class using PullPayment

+ 2 - 0
contracts/examples/StoppableBid.sol

@@ -1,3 +1,5 @@
+pragma solidity ^0.4.0;
+
 import '../PullPayment.sol';
 import '../Stoppable.sol';
 

+ 1 - 0
contracts/test-helpers/PullPaymentMock.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 import '../PullPayment.sol';
 
 // mock class using PullPayment

+ 1 - 0
test/TestOwnable.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 import "truffle/Assert.sol";
 import "truffle/DeployedAddresses.sol";
 import "../contracts/Ownable.sol";