Update code after rebase

This commit is contained in:
Alex Browne 2018-05-21 14:26:25 -07:00
parent 577156fe5f
commit 72fb8460e9
No known key found for this signature in database
GPG Key ID: 7974B08A447ABE31
3 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import * as chai from 'chai';
import * as _ from 'lodash';
import { constants } from '../../util/constants';
import { constants } from './constants';
const expect = chai.expect;

View File

@ -19,6 +19,7 @@ const TESTRPC_PRIVATE_KEYS_STRINGS = [
export const constants = {
INVALID_OPCODE: 'invalid opcode',
REVERT: 'revert',
ALWAYS_FAILING_TRANSACTION: 'always failing transaction',
TESTRPC_NETWORK_ID: 50,
AWAIT_TRANSACTION_MINED_MS: 100,
MAX_ETHERTOKEN_WITHDRAW_GAS: 43000,

View File

@ -7,13 +7,17 @@ import { coverage } from './coverage';
export const txDefaults = {
from: devConstants.TESTRPC_FIRST_ADDRESS,
gas: devConstants.GAS_LIMIT,
// gas: devConstants.GAS_LIMIT,
};
const providerConfigs = {
shouldUseInProcessGanache: false,
rpcUrl: 'http://localhost:8501',
};
const providerConfigs = { shouldUseInProcessGanache: true };
export const provider = web3Factory.getRpcProvider(providerConfigs);
const isCoverageEnabled = env.parseBoolean(EnvVars.SolidityCoverage);
if (isCoverageEnabled) {
const coverageSubprovider = coverage.getCoverageSubproviderSingleton();
prependSubprovider(provider, coverageSubprovider);
}
export const web3Wrapper = new Web3Wrapper(provider);