Browse Source

changes for solidity 0.4

Michael J. Curry 9 years ago
parent
commit
25d0ed0006

+ 1 - 0
contracts/Bounty.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 import './PullPaymentCapable.sol';
 import './Token.sol';
 

+ 1 - 0
contracts/ERC20.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 contract ERC20 {
     function totalSupply() constant returns (uint);
     function balanceOf(address who) constant returns (uint);

+ 1 - 0
contracts/Killable.sol

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

+ 2 - 1
contracts/Migrations.sol

@@ -1,9 +1,10 @@
+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() {

+ 2 - 1
contracts/Ownable.sol

@@ -1,3 +1,4 @@
+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 {

+ 1 - 0
contracts/PullPayment.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 /*
  * PullPaymentCapable
  * Base contract supporting async send for pull payments.

+ 1 - 0
contracts/Rejector.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 /*
  * Rejector
  * Base contract for rejecting direct deposits.

+ 3 - 2
contracts/Stoppable.sol

@@ -1,3 +1,4 @@
+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;

+ 1 - 0
contracts/Token.sol

@@ -1,3 +1,4 @@
+pragma solidity ^0.4.0;
 // Source: https://github.com/nexusdev/erc20
 // Flat file implementation of `dappsys/token/base.sol::DSTokenBase`