set minimal amount of gas to avoid issues with slighter bigger contracts; to be configurable in 0.2.0

This commit is contained in:
Iuri Matias 2015-06-04 07:14:46 -04:00
parent 406931b1fb
commit f5b38d9265
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module.exports = (grunt) ->
#TODO: refactor this into a common method #TODO: refactor this into a common method
if compiled_contracts.info is undefined if compiled_contracts.info is undefined
for className, contract of compiled_contracts for className, contract of compiled_contracts
contractAddress = web3.eth.sendTransaction({from: primaryAddress, data: contract.code}) contractAddress = web3.eth.sendTransaction({from: primaryAddress, data: contract.code, gas: 100000})
grunt.log.writeln("deployed #{className} at #{contractAddress}") grunt.log.writeln("deployed #{className} at #{contractAddress}")
abi = JSON.stringify(contract.info.abiDefinition) abi = JSON.stringify(contract.info.abiDefinition)