hide interfaces in contract deployment page

This commit is contained in:
Jonathan Rainville 2018-11-06 14:57:06 -05:00
parent c25c644b5a
commit 2f4625c143
1 changed files with 5 additions and 2 deletions

View File

@ -81,7 +81,7 @@ const DeploymentResult = ({deployment}) => {
DeploymentResult.propTypes = { DeploymentResult.propTypes = {
deployment: PropTypes.object deployment: PropTypes.object
} };
const GasEstimateResult = ({gasEstimate}) => { const GasEstimateResult = ({gasEstimate}) => {
if (gasEstimate.running) { if (gasEstimate.running) {
@ -249,6 +249,9 @@ ContractsHeader.propTypes = {
}; };
const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateGas, web3Deployments, web3GasEstimates, toggleContractOverview}) => { const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateGas, web3Deployments, web3GasEstimates, toggleContractOverview}) => {
if (!contract.code && !contract.deploy) {
return <React.Fragment/>;
}
const deployment = web3Deployments[contract.className]; const deployment = web3Deployments[contract.className];
const gasEstimate = web3GasEstimates[contract.className]; const gasEstimate = web3GasEstimates[contract.className];
switch (deploymentPipeline) { switch (deploymentPipeline) {
@ -262,7 +265,7 @@ const Contract = ({web3, contract, deploymentPipeline, web3Deploy, web3EstimateG
web3Deploy={web3Deploy} web3Deploy={web3Deploy}
web3EstimateGas={web3EstimateGas}/>; web3EstimateGas={web3EstimateGas}/>;
default: default:
return <React.Fragment></React.Fragment>; return <React.Fragment/>;
} }
}; };