Browse Source

Removed unused imports

develop
Ezerous 7 years ago
parent
commit
c4931a05a0
  1. 20
      contracts/Migrations.sol
  2. 4
      package.json
  3. 2
      src/store.js

20
contracts/Migrations.sol

@ -8,16 +8,16 @@ contract Migrations {
if (msg.sender == owner) _; if (msg.sender == owner) _;
} }
function Migrations() public { constructor() public {
owner = msg.sender; owner = msg.sender;
} }
function setCompleted(uint completed) public restricted { function setCompleted(uint completed) public restricted {
last_completed_migration = completed; last_completed_migration = completed;
} }
function upgrade(address new_address) public restricted { function upgrade(address new_address) public restricted {
Migrations upgraded = Migrations(new_address); Migrations upgraded = Migrations(new_address);
upgraded.setCompleted(last_completed_migration); upgraded.setCompleted(last_completed_migration);
} }
} }

4
package.json

@ -6,9 +6,6 @@
"type": "git", "type": "git",
"url": "https://gitlab.com/Ezerous/Apella.git" "url": "https://gitlab.com/Ezerous/Apella.git"
}, },
"devDependencies": {
"truffle-contract": "^3.0.4"
},
"dependencies": { "dependencies": {
"drizzle": "^1.1.5", "drizzle": "^1.1.5",
"drizzle-react": "^1.1.1", "drizzle-react": "^1.1.1",
@ -23,7 +20,6 @@
"redux": "^3.7.2", "redux": "^3.7.2",
"redux-auth-wrapper": "1.1.0", "redux-auth-wrapper": "1.1.0",
"redux-saga": "0.16.0", "redux-saga": "0.16.0",
"redux-thunk": "^2.2.0",
"web3":"^1.0.0-beta.34" "web3":"^1.0.0-beta.34"
}, },
"scripts": { "scripts": {

2
src/store.js

@ -1,6 +1,5 @@
import { browserHistory } from 'react-router' import { browserHistory } from 'react-router'
import { createStore, applyMiddleware, compose } from 'redux' import { createStore, applyMiddleware, compose } from 'redux'
import thunkMiddleware from 'redux-thunk'
import { routerMiddleware } from 'react-router-redux' import { routerMiddleware } from 'react-router-redux'
import reducer from './reducer' import reducer from './reducer'
import rootSaga from './rootSaga' import rootSaga from './rootSaga'
@ -23,7 +22,6 @@ const store = createStore(
initialState, initialState,
composeEnhancers( composeEnhancers(
applyMiddleware( applyMiddleware(
thunkMiddleware,
routingMiddleware, routingMiddleware,
sagaMiddleware sagaMiddleware
) )

Loading…
Cancel
Save