Skip to content

Commit

Permalink
Added optional ipc field to 'environment' NetworkConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
tinybike committed Jul 23, 2018
1 parent 15ec761 commit 24f88b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/libraries/NetworkConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type NetworkOptions = {
isProduction: boolean;
http: string;
ws?: string;
ipc?: string;
privateKey?: string;
gasPrice: BN;
}
Expand Down Expand Up @@ -48,6 +49,7 @@ const networks: Networks = {
isProduction: process.env.PRODUCTION === "true" || false,
http: process.env.ETHEREUM_HTTP || "http://localhost:8545",
ws: process.env.ETHEREUM_WS || "http://localhost:8546",
ipc: process.env.ETHEREUM_IPC,
privateKey: process.env.ETHEREUM_PRIVATE_KEY || "fae42052f82bed612a724fec3632f325f377120592c75bb78adfcceae6470c5a",
gasPrice: ((typeof process.env.ETHEREUM_GAS_PRICE_IN_NANOETH === "undefined") ? new BN(20) : new BN(process.env.ETHEREUM_GAS_PRICE_IN_NANOETH!)).mul(new BN(1000000000))
},
Expand Down

0 comments on commit 24f88b3

Please sign in to comment.