add pragmas and get tests to run

This commit is contained in:
Michael J. Curry
2016-10-12 14:02:54 -04:00
parent 21fb7463c7
commit 5c07cd148d
13 changed files with 18 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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