fix contract arguments

This commit is contained in:
Iuri Matias 2016-09-23 02:59:08 -07:00
parent df508e4e8d
commit c3beb51327
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ ContractsManager.prototype.compileContracts = function() {
ContractsManager.prototype.build = function() { ContractsManager.prototype.build = function() {
for(var className in this.compiledContracts) { for(var className in this.compiledContracts) {
var contract = this.compiledContracts[className]; var contract = this.compiledContracts[className];
var contractConfig = this.contractsConfig[className]; var contractConfig = this.contractsConfig.contracts[className];
if (this.contractsConfig.gas === 'auto') { if (this.contractsConfig.gas === 'auto') {
var maxGas = Math.max(contract.gasEstimates.creation[0], contract.gasEstimates.creation[1], 500000); var maxGas = Math.max(contract.gasEstimates.creation[0], contract.gasEstimates.creation[1], 500000);