changes for solidity 0.4

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