diff --git a/lib/contracts.js b/lib/contracts.js index 0efb3c37a..f66dfcdc9 100644 --- a/lib/contracts.js +++ b/lib/contracts.js @@ -19,7 +19,7 @@ ContractsManager.prototype.compileContracts = function() { ContractsManager.prototype.build = function() { for(var className in this.compiledContracts) { var contract = this.compiledContracts[className]; - var contractConfig = this.contractsConfig[className]; + var contractConfig = this.contractsConfig.contracts[className]; if (this.contractsConfig.gas === 'auto') { var maxGas = Math.max(contract.gasEstimates.creation[0], contract.gasEstimates.creation[1], 500000);