add pragmas and get tests to run
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
contract LimitFunds {
|
contract LimitFunds {
|
||||||
|
|
||||||
uint LIMIT = 5000;
|
uint LIMIT = 5000;
|
||||||
|
|||||||
@ -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!
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
// UNSAFE CODE, DO NOT USE!
|
// UNSAFE CODE, DO NOT USE!
|
||||||
|
|
||||||
contract BadFailEarly {
|
contract BadFailEarly {
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
// UNSAFE CODE, DO NOT USE!
|
// UNSAFE CODE, DO NOT USE!
|
||||||
|
|
||||||
contract BadPushPayments {
|
contract BadPushPayments {
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
import '../PullPayment.sol';
|
import '../PullPayment.sol';
|
||||||
|
|
||||||
contract GoodArrayUse is PullPayment {
|
contract GoodArrayUse is PullPayment {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
|
|
||||||
contract GoodFailEarly {
|
contract GoodFailEarly {
|
||||||
|
|
||||||
uint constant DEFAULT_SALARY = 50000;
|
uint constant DEFAULT_SALARY = 50000;
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
contract GoodPullPayments {
|
contract GoodPullPayments {
|
||||||
address highestBidder;
|
address highestBidder;
|
||||||
uint highestBid;
|
uint highestBid;
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
|
|
||||||
import "../Rejector.sol";
|
import "../Rejector.sol";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
|
|
||||||
import '../PullPayment.sol';
|
import '../PullPayment.sol';
|
||||||
|
|
||||||
contract PullPaymentBid is PullPayment {
|
contract PullPaymentBid is PullPayment {
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
|
|
||||||
import '../PullPayment.sol';
|
import '../PullPayment.sol';
|
||||||
|
|
||||||
// Example class using PullPayment
|
// Example class using PullPayment
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
|
|
||||||
import '../PullPayment.sol';
|
import '../PullPayment.sol';
|
||||||
import '../Stoppable.sol';
|
import '../Stoppable.sol';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pragma solidity ^0.4.0;
|
||||||
import '../PullPayment.sol';
|
import '../PullPayment.sol';
|
||||||
|
|
||||||
// mock class using PullPayment
|
// mock class using PullPayment
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user