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 {
uint LIMIT = 5000;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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