From 3844d864e7489bb29b87f8f3c93f0b2555e9c43c Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 17 Oct 2018 09:14:29 +0100 Subject: [PATCH] Apply PR feedback --- embark-ui/src/components/ContractsDeployment.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/embark-ui/src/components/ContractsDeployment.js b/embark-ui/src/components/ContractsDeployment.js index aa9adfc28..8521e1faf 100644 --- a/embark-ui/src/components/ContractsDeployment.js +++ b/embark-ui/src/components/ContractsDeployment.js @@ -106,9 +106,9 @@ class Web3Contract extends React.Component { } render() { - const constructor = findConstructor(this.props.contract.abiDefinition); - const isInterface = !constructor; - const argumentsRequired = constructor && constructor.inputs.length > 0; + const abiConstructor = findConstructor(this.props.contract.abiDefinition); + const isInterface = !abiConstructor; + const argumentsRequired = abiConstructor && abiConstructor.inputs.length > 0; return ( @@ -121,7 +121,7 @@ class Web3Contract extends React.Component { Arguments: - {constructor.inputs.map(input => ( + {abiConstructor.inputs.map(input => ( this.handleOnChange(e, input.name)} /> @@ -227,9 +227,9 @@ const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateG const deployment = web3Deployments[contract.className]; const gasEstimate = web3GasEstimates[contract.className]; switch(deploymentPipeline) { - case 'embark': + case DEPLOYMENT_PIPELINES.embark: return ; - case 'injectedWeb3': + case DEPLOYMENT_PIPELINES.injectedWeb3: return