add blockchain config to abi

This commit is contained in:
Aakil Fernandes 2015-12-02 18:42:36 -05:00 committed by Aakil Fernandes
parent 8af4282ed7
commit 07ec906766
2 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ BlockchainConfig.prototype.config = function(env) {
config = {
env:env,
rpcHost: config.rpc_host,
rpcPort: config.rpc_port,
gasLimit: config.gas_limit || 500000,

View File

@ -198,6 +198,8 @@ Deploy.prototype.generate_provider_file = function() {
Deploy.prototype.generate_abi_file = function() {
var result = "";
result += 'blockchain = '+JSON.stringify(this.blockchainConfig)+';';
for(className in this.deployedContracts) {
var deployedContract = this.deployedContracts[className];
var contract = this.contractDB[className];