changes for solidity 0.4

parent 570d6cb9
pragma solidity ^0.4.0;
import './PullPaymentCapable.sol';
import './Token.sol';
......
pragma solidity ^0.4.0;
contract ERC20 {
function totalSupply() constant returns (uint);
function balanceOf(address who) constant returns (uint);
......
pragma solidity ^0.4.0;
import "./Ownable.sol";
/*
......
pragma solidity ^0.4.0;
contract Migrations {
address public owner;
uint public last_completed_migration;
modifier restricted() {
if (msg.sender == owner) _
if (msg.sender == owner) _;
}
function Migrations() {
......
pragma solidity ^0.4.0;
/*
* Ownable
* Base contract with an owner
......@@ -11,7 +12,7 @@ contract Ownable {
modifier onlyOwner() {
if (msg.sender == owner)
_
_;
}
function transfer(address newOwner) onlyOwner {
......
pragma solidity ^0.4.0;
/*
* PullPaymentCapable
* Base contract supporting async send for pull payments.
......
pragma solidity ^0.4.0;
/*
* Rejector
* Base contract for rejecting direct deposits.
......
pragma solidity ^0.4.0;
/*
* Stoppable
* Abstract contract that allows children to implement an
......@@ -7,8 +8,8 @@ contract Stoppable {
address public curator;
bool public stopped;
modifier stopInEmergency { if (!stopped) _ }
modifier onlyInEmergency { if (stopped) _ }
modifier stopInEmergency { if (!stopped) _; }
modifier onlyInEmergency { if (stopped) _; }
function Stoppable(address _curator) {
if (_curator == 0) throw;
......
pragma solidity ^0.4.0;
// Source: https://github.com/nexusdev/erc20
// Flat file implementation of `dappsys/token/base.sol::DSTokenBase`
......
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