mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 16:46:38 +00:00
cleanup; add todo to add other items to chains file
This commit is contained in:
parent
3d672a0f63
commit
2e79299f14
@ -17,8 +17,9 @@ var DeployTracker = function(options) {
|
|||||||
this.currentChain = this.chainConfig[chainId];
|
this.currentChain = this.chainConfig[chainId];
|
||||||
|
|
||||||
this.currentChain.name = this.env;
|
this.currentChain.name = this.env;
|
||||||
// TODO: add networkId
|
// TODO: add other params
|
||||||
this.currentChain.networkId = "";
|
//this.currentChain.networkId = "";
|
||||||
|
//this.currentChain.networkType = "custom"
|
||||||
};
|
};
|
||||||
|
|
||||||
DeployTracker.prototype.loadConfig = function(config) {
|
DeployTracker.prototype.loadConfig = function(config) {
|
||||||
@ -27,10 +28,6 @@ DeployTracker.prototype.loadConfig = function(config) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
DeployTracker.prototype.trackContract = function(contractName, code, args, address) {
|
DeployTracker.prototype.trackContract = function(contractName, code, args, address) {
|
||||||
//this.logger.debug("--- trackContract ---");
|
|
||||||
//this.logger.debug(this.currentChain.contracts);
|
|
||||||
//this.logger.debug(code + contractName + args.join(','));
|
|
||||||
//this.logger.debug(this.web3.sha3(code + contractName + args.join(',')));
|
|
||||||
this.currentChain.contracts[this.web3.sha3(code + contractName + args.join(','))] = {
|
this.currentChain.contracts[this.web3.sha3(code + contractName + args.join(','))] = {
|
||||||
name: contractName,
|
name: contractName,
|
||||||
address: address
|
address: address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user