PullPayment rename fixes

parent 25d0ed00
pragma solidity ^0.4.0;
import './PullPaymentCapable.sol';
import './PullPayment.sol';
import './Token.sol';
/*
......@@ -8,7 +8,7 @@ import './Token.sol';
* to be lower than its totalSupply, which would mean that it doesn't
* have sufficient ether for everyone to withdraw.
*/
contract Bounty is PullPaymentCapable {
contract Bounty is PullPayment {
bool public claimed;
mapping(address => address) public researchers;
......
pragma solidity ^0.4.0;
/*
* PullPaymentCapable
* PullPayment
* Base contract supporting async send for pull payments.
* Inherit from this contract and use asyncSend instead of send.
*/
contract PullPaymentCapable {
contract PullPayment {
mapping(address => uint) public payments;
// store sent amount as credit to be pulled, called by payer
......
import '../PullPaymentCapable.sol';
import '../PullPayment.sol';
// UNSAFE CODE, DO NOT USE!
contract BadArrayUse is PullPaymentCapable {
contract BadArrayUse is PullPayment {
address[] employees;
function payBonus() {
......
import '../PullPaymentCapable.sol';
import '../PullPayment.sol';
contract GoodArrayUse is PullPaymentCapable {
contract GoodArrayUse is PullPayment {
address[] employees;
mapping(address => uint) bonuses;
......
import '../PullPaymentCapable.sol';
import '../PullPayment.sol';
contract PullPaymentBid is PullPaymentCapable {
contract PullPaymentBid is PullPayment {
address public highestBidder;
uint public highestBid;
......
import '../PullPaymentCapable.sol';
import '../PullPayment.sol';
// Example class using PullPaymentCapable
contract PullPaymentCapableExample is PullPaymentCapable {
// Example class using PullPayment
contract PullPaymentExample is PullPayment {
// test helper function to call asyncSend
function callSend(address dest, uint amount) external {
asyncSend(dest, amount);
......
import '../PullPaymentCapable.sol';
import '../PullPayment.sol';
import '../Stoppable.sol';
contract StoppableBid is Stoppable, PullPaymentCapable {
contract StoppableBid is Stoppable, PullPayment {
address public highestBidder;
uint public highestBid;
function StoppableBid(address _curator)
Stoppable(_curator)
PullPaymentCapable() {}
PullPayment() {}
function bid() external stopInEmergency {
if (msg.value <= highestBid) throw;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment