PR feedback

This commit is contained in:
Anthony Laibe 2018-10-17 14:11:10 +01:00 committed by Pascal Precht
parent 3844d864e7
commit 4e23acb558
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
4 changed files with 10 additions and 16 deletions

View File

@ -323,13 +323,13 @@ export const gasOracle = {
failure: (error) => action(GAS_ORACLE[FAILURE], {error})
};
<<<<<<< HEAD
export const EXPLORER_SEARCH = createRequestTypes('EXPLORER_SEARCH');
export const explorerSearch = {
request: (searchValue) => action(EXPLORER_SEARCH[REQUEST], {searchValue}),
success: (searchResult) => action(EXPLORER_SEARCH[SUCCESS], {searchResult}),
failure: (error) => action(EXPLORER_SEARCH[FAILURE], {error})
=======
};
export const WEB3_CONNECT = createRequestTypes('WEB3_CONNECT');
export const web3Connect = {
request: () => action(WEB3_CONNECT[REQUEST]),
@ -349,7 +349,6 @@ export const web3EstimateGas = {
request: (contract, args) => action(WEB3_ESTIMAGE_GAS[REQUEST], {contract, args}),
success: (gas, payload) => action(WEB3_ESTIMAGE_GAS[SUCCESS], {contract: payload.contract, gas}),
failure: (error, payload) => action(WEB3_ESTIMAGE_GAS[FAILURE], {web3Error: error, contract: payload.contract})
>>>>>>> Adding option to switch deployment pipeline
};
// Web Socket

View File

@ -1,5 +1,6 @@
import PropTypes from "prop-types";
import React from 'react';
import FontAwesomeIcon from 'react-fontawesome';
import {
Row,
Col,
@ -47,7 +48,7 @@ const LayoutContract = ({contract, children}) => (
const DeploymentResult = ({deployment}) => {
if (deployment.running) {
return <p>Deployment is in progress <i className="fa fa-spinner fa-spin fa-fw"/></p>
return <p>Deployment is in progress <FontAwesomeIcon className="ml-1" name="spinner" spin/></p>
}
if (deployment.error) {
@ -73,7 +74,7 @@ const DeploymentResult = ({deployment}) => {
const GasEstimateResult = ({gasEstimate}) => {
if (gasEstimate.running) {
return <p>Gas Estimation is in progresss <i className="fa fa-spinner fa-spin fa-fw"/></p>
return <p>Gas Estimation is in progresss <FontAwesomeIcon className="ml-1" name="spinner" spin/></p>
}
if (gasEstimate.error) {
@ -197,7 +198,7 @@ const ContractsHeader = ({deploymentPipeline, updateDeploymentPipeline}) => (
onChange={() => updateDeploymentPipeline(DEPLOYMENT_PIPELINES.embark)}
checked={deploymentPipeline === DEPLOYMENT_PIPELINES.embark} />
Embark
<i className="ml-1 fa fa-question" id="embark-tooltip" />
<FontAwesomeIcon className="ml-1" name="question" id="embark-tooltip" />
<UncontrolledTooltip placement="bottom" target="embark-tooltip">
Embark will deploy the contracts automatically for you each time there is a change in one of them.
</UncontrolledTooltip>
@ -210,7 +211,7 @@ const ContractsHeader = ({deploymentPipeline, updateDeploymentPipeline}) => (
onChange={() => updateDeploymentPipeline(DEPLOYMENT_PIPELINES.injectedWeb3)}
checked={deploymentPipeline === DEPLOYMENT_PIPELINES.injectedWeb3} />
Injected Web3
<i className="ml-1 fa fa-question" id="web3-tooltip" />
<FontAwesomeIcon className="ml-1" name="question" id="web3-tooltip" />
<UncontrolledTooltip placement="bottom" target="web3-tooltip">
You will have full control on your deployment
</UncontrolledTooltip>

View File

@ -1,14 +1,9 @@
import {combineReducers} from 'redux';
<<<<<<< HEAD
import {REQUEST, SUCCESS, FAILURE, CONTRACT_COMPILE, FILES, LOGOUT, AUTHENTICATE,
FETCH_CREDENTIALS, UPDATE_BASE_ETHER, CHANGE_THEME, FETCH_THEME, EXPLORER_SEARCH,
SIGN_MESSAGE, VERIFY_MESSAGE, TOGGLE_BREAKPOINT} from "../actions";
import {EMBARK_PROCESS_NAME, DARK_THEME} from '../constants';
=======
import {REQUEST, SUCCESS, FAILURE, CONTRACT_COMPILE, FILES, LOGOUT, AUTHENTICATE, CHANGE_THEME, FETCH_THEME,
FETCH_CREDENTIALS, UPDATE_BASE_ETHER, UPDATE_DEPLOYMENT_PIPELINE, WEB3_CONNECT, WEB3_DEPLOY, WEB3_ESTIMAGE_GAS} from "../actions";
SIGN_MESSAGE, VERIFY_MESSAGE, TOGGLE_BREAKPOINT,
UPDATE_DEPLOYMENT_PIPELINE, WEB3_CONNECT, WEB3_DEPLOY, WEB3_ESTIMAGE_GAS} from "../actions";
import {EMBARK_PROCESS_NAME, DARK_THEME, DEPLOYMENT_PIPELINES} from '../constants';
>>>>>>> Adding option to switch deployment pipeline
const BN_FACTOR = 10000;
const VOID_ADDRESS = '0x0000000000000000000000000000000000000000';

View File

@ -12,8 +12,7 @@ export const connect = () => {
reject(error);
}
} else if (window.web3) {
const web3 = new Web3(window.web3.currentProvider);
resolve(web3);
resolve(new Web3(window.web3.currentProvider));
} else {
reject(Error('Non-Ethereum browser detected. You should use MetaMask!'));
}