diff --git a/lib/config/blockchain.js b/lib/config/blockchain.js index 30514f33..46b14f7b 100644 --- a/lib/config/blockchain.js +++ b/lib/config/blockchain.js @@ -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, diff --git a/lib/deploy.js b/lib/deploy.js index 4ed07210..bad65039 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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];