Make Deployer configurable by jsonrpcUrl instead of jsonrpcPort

This commit is contained in:
Leonid Logvinov
2018-03-12 03:19:39 +01:00
parent 7143996d26
commit c4a18ee64b
8 changed files with 22 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ const compiler = new Compiler(compilerOpts);
const deployerOpts = {
artifactsDir,
networkId: constants.networkId,
jsonrpcPort: constants.jsonrpcPort,
jsonrpcUrl: constants.jsonrpcUrl,
defaults: {
gasPrice: constants.gasPrice,
},

View File

@@ -2,7 +2,7 @@ import { BigNumber } from '@0xproject/utils';
export const constants = {
networkId: 0,
jsonrpcPort: 8545,
jsonrpcUrl: 'http://localhost:8545',
optimizerEnabled: 0,
gasPrice: new BigNumber(20000000000),
timeoutMs: 20000,