Properly and consistently parse ENV vars

This commit is contained in:
Leonid Logvinov
2018-03-13 15:19:31 +01:00
parent a0791455e1
commit a9db0e8ebe
4 changed files with 9 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ import * as process from 'process';
import { constants } from './constants';
import { coverage } from './coverage';
import { env } from './env';
import { env, EnvVars } from './env';
// HACK: web3 leaks XMLHttpRequest into the global scope and causes requests to hang
// because they are using the wrong XHR package.
@@ -27,11 +27,6 @@ export interface Web3Config {
shouldUseInProcessGanache?: boolean; // default: false
}
enum EnvVars {
SolidityCoverage = 'SOLIDITY_COVERAGE',
VerboseGanache = 'VERBOSE_GANACHE',
}
export const web3Factory = {
create(config: Web3Config = {}): Web3 {
const provider = this.getRpcProvider(config);