diff --git a/embark-ui/src/actions/index.js b/embark-ui/src/actions/index.js index 27408bba..a11cfa2f 100644 --- a/embark-ui/src/actions/index.js +++ b/embark-ui/src/actions/index.js @@ -147,8 +147,6 @@ export function receiveContractProfileError() { } export function fetchContract(contractName) { - console.dir("== fetchContract"); - console.dir(contractName); return { type: FETCH_CONTRACT, contractName @@ -156,8 +154,6 @@ export function fetchContract(contractName) { } export function receiveContract(contract) { - console.dir("== receiveContract"); - console.dir(contract); return { type: RECEIVE_CONTRACT, contract @@ -165,7 +161,6 @@ export function receiveContract(contract) { } export function receiveContractError() { - console.dir("== receiveContractError"); return { type: RECEIVE_CONTRACT_ERROR }; diff --git a/embark-ui/src/api/index.js b/embark-ui/src/api/index.js index 16d6e734..ef3ddaf1 100644 --- a/embark-ui/src/api/index.js +++ b/embark-ui/src/api/index.js @@ -66,8 +66,6 @@ export function webSocketBlockHeader() { } export function fetchContract(contractName) { - console.dir("api: fetchContract"); - console.dir(contractName); return axios.get('http://localhost:8000/embark-api/contract/' + contractName); } @@ -76,7 +74,5 @@ export function fetchContracts() { } export function fetchContractProfile(contractName) { - console.dir("api: fetchContractProfile"); - console.dir(contractName); return axios.get('http://localhost:8000/embark-api/profiler/' + contractName); } diff --git a/embark-ui/src/components/Contract.js b/embark-ui/src/components/Contract.js index f34dcf51..f27e0ca0 100644 --- a/embark-ui/src/components/Contract.js +++ b/embark-ui/src/components/Contract.js @@ -5,7 +5,6 @@ import { Card, Table } from "tabler-react"; -import {Link} from 'react-router-dom'; const Contract = ({contract}) => ( diff --git a/embark-ui/src/components/ContractProfile.js b/embark-ui/src/components/ContractProfile.js index ba2ed0fa..6c5a7a2e 100644 --- a/embark-ui/src/components/ContractProfile.js +++ b/embark-ui/src/components/ContractProfile.js @@ -5,7 +5,6 @@ import { Card, Table } from "tabler-react"; -import {Link} from 'react-router-dom'; const ContractProfile = ({contract}) => ( @@ -27,7 +26,7 @@ const ContractProfile = ({contract}) => ( contract.methods.map((method) => { return ([ {content: method.name}, - {content: (method.payable == true).toString()}, + {content: (method.payable === true).toString()}, {content: method.mutability}, {content: `(${method.inputs.map((x) => x.type).join(',')})`}, {content: `(${method.outputs.map((x) => x.type).join(',')})`}, diff --git a/embark-ui/src/reducers/contractProfileReducer.js b/embark-ui/src/reducers/contractProfileReducer.js index 2fe634fa..888038da 100644 --- a/embark-ui/src/reducers/contractProfileReducer.js +++ b/embark-ui/src/reducers/contractProfileReducer.js @@ -1,8 +1,6 @@ import {RECEIVE_CONTRACT_PROFILE, RECEIVE_CONTRACT_PROFILE_ERROR} from "../actions"; export default function contractProfile(state = {}, action) { - console.dir("** reducer contract profile"); - console.dir(arguments); switch (action.type) { case RECEIVE_CONTRACT_PROFILE: return Object.assign({}, state, {data: action.contractProfile.data}); diff --git a/embark-ui/src/reducers/contractReducer.js b/embark-ui/src/reducers/contractReducer.js index 0bca3003..cb3a4ce9 100644 --- a/embark-ui/src/reducers/contractReducer.js +++ b/embark-ui/src/reducers/contractReducer.js @@ -1,8 +1,6 @@ import {RECEIVE_CONTRACT, RECEIVE_CONTRACT_ERROR} from "../actions"; export default function contract(state = {}, action) { - console.dir("** reducer"); - console.dir(arguments); switch (action.type) { case RECEIVE_CONTRACT: return Object.assign({}, state, {data: action.contract.data}); diff --git a/embark-ui/src/routes.js b/embark-ui/src/routes.js index 1480cfc0..1066dfe9 100644 --- a/embark-ui/src/routes.js +++ b/embark-ui/src/routes.js @@ -4,8 +4,6 @@ import {Route, Switch} from 'react-router-dom'; import HomeContainer from './containers/HomeContainer'; import AccountsContainer from './containers/AccountsContainer'; import ContractsContainer from './containers/ContractsContainer'; -import ContractContainer from './containers/ContractContainer'; -import ContractProfileContainer from './containers/ContractProfileContainer'; import NoMatch from './components/NoMatch'; import ExplorerLayout from './components/ExplorerLayout'; import ProcessesLayout from './components/ProcessesLayout'; diff --git a/embark-ui/src/sagas/index.js b/embark-ui/src/sagas/index.js index 012d325e..5b7d178b 100644 --- a/embark-ui/src/sagas/index.js +++ b/embark-ui/src/sagas/index.js @@ -128,19 +128,15 @@ export default function *root() { } export function *fetchContract(action) { - console.dir("** fetchContract"); - console.dir(action); try { const contract = yield call(api.fetchContract, action.contractName); yield put(actions.receiveContract(contract)); } catch (e) { - console.dir(e); yield put(actions.receiveContractError()); } } export function *watchFetchContract() { - console.dir("** watchFetchContract"); yield takeEvery(actions.FETCH_CONTRACT, fetchContract); } @@ -158,19 +154,15 @@ export function *watchFetchContracts() { } export function *fetchContractProfile(action) { - console.dir("** fetchContractProfile"); - console.dir(action); try { const profile = yield call(api.fetchContractProfile, action.contractName); yield put(actions.receiveContractProfile(profile)); } catch (e) { - console.dir(e); yield put(actions.receiveContractError()); } } export function *watchFetchContractProfile() { - console.dir("** watchFetchContractProfile"); yield takeEvery(actions.FETCH_CONTRACT_PROFILE, fetchContractProfile); }