Skip to content

Commit

Permalink
lintint fixes && Refactor Corwdsale
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Nov 2, 2017
1 parent ff098e5 commit 9bbe8e0
Show file tree
Hide file tree
Showing 7 changed files with 412 additions and 190 deletions.
8 changes: 5 additions & 3 deletions dao/contracts/Migrations.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
pragma solidity ^0.4.15;


contract Migrations {
address public owner;
uint public last_completed_migration;

modifier restricted() {
if (msg.sender == owner) _;
if (msg.sender == owner)
_;
}

function Migrations() {
Expand All @@ -16,8 +18,8 @@ contract Migrations {
last_completed_migration = completed;
}

function upgrade(address new_address) restricted {
Migrations upgraded = Migrations(new_address);
function upgrade(address newAddress) restricted {
Migrations upgraded = Migrations(newAddress);
upgraded.setCompleted(last_completed_migration);
}
}
1 change: 1 addition & 0 deletions dao/contracts/agent/Agent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity ^0.4.15;
import "./AgentInterface.sol";
import "../ownership/ownable.sol";


contract Agent is AgentInterface, ownable {

bytes[] public packets;
Expand Down
1 change: 1 addition & 0 deletions dao/contracts/agent/AgentFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma solidity ^0.4.15;

import './Agent.sol';


contract AgentFactory {

function create() public returns (Agent) {
Expand Down
1 change: 1 addition & 0 deletions dao/contracts/agent/AgentInterface.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma solidity ^0.4.15;

import "../market/MarketJob.sol";


contract AgentInterface {

function sendPacket(address target, bytes packet) external;
Expand Down
Loading

0 comments on commit 9bbe8e0

Please sign in to comment.