mirror of https://github.com/embarklabs/embark.git
set minimal amount of gas to avoid issues with slighter bigger contracts; to be configurable in 0.2.0
This commit is contained in:
parent
406931b1fb
commit
f5b38d9265
|
@ -30,7 +30,7 @@ module.exports = (grunt) ->
|
|||
#TODO: refactor this into a common method
|
||||
if compiled_contracts.info is undefined
|
||||
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}")
|
||||
|
||||
abi = JSON.stringify(contract.info.abiDefinition)
|
||||
|
|
Loading…
Reference in New Issue