Refactor networkId out of web3Wrapper

This commit is contained in:
Leonid Logvinov
2017-12-08 12:51:46 +03:00
parent 5401c69163
commit b362e2c28e
12 changed files with 39 additions and 31 deletions

View File

@@ -31,7 +31,7 @@ export class Deployer {
const jsonrpcUrl = `http://localhost:${this.jsonrpcPort}`;
const web3Provider = new Web3.providers.HttpProvider(jsonrpcUrl);
this.defaults = opts.defaults;
this.web3Wrapper = new Web3Wrapper(web3Provider, this.networkId, this.defaults);
this.web3Wrapper = new Web3Wrapper(web3Provider, this.defaults);
}
/**
* Loads contract artifact and deploys contract with given arguments.