diff --git a/lib/contracts/contracts.js b/lib/contracts/contracts.js index 104435fa..bcd9882c 100644 --- a/lib/contracts/contracts.js +++ b/lib/contracts/contracts.js @@ -57,7 +57,6 @@ class ContractsManager { contract.filename = compiledContract.filename; contract.gas = (contractConfig && contractConfig.gas) || self.contractsConfig.gas || 'auto'; - //self.adjustGas(contract); contract.gasPrice = contract.gasPrice || self.contractsConfig.gasPrice; contract.type = 'file'; @@ -269,29 +268,6 @@ class ContractsManager { return data; } - - //adjustGas(contract) { - // let maxGas, adjustedGas; - // if (contract.gas === 'auto') { - // if (contract.deploy || contract.deploy === undefined) { - // if (contract.gasEstimates.creation !== undefined) { - // // TODO: should sum it instead - // maxGas = Math.max(contract.gasEstimates.creation[0], contract.gasEstimates.creation[1], 500000); - // } else { - // maxGas = 500000; - // } - // } else { - // maxGas = 500000; - // } - // // TODO: put a check so it doesn't go over the block limit - // adjustedGas = Math.round(maxGas * 1.40); - // adjustedGas += 25000; - // contract.gas = adjustedGas; - // if (this.gasLimit && this.gasLimit > contract.gas) { - // contract.gas = this.gasLimit; - // } - // } - //} } module.exports = ContractsManager;