remove old code

This commit is contained in:
Iuri Matias 2018-01-19 13:59:39 -05:00
parent 5300aa479b
commit 5c0c7b45a5
1 changed files with 0 additions and 24 deletions

View File

@ -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;