diff --git a/contracts/test-utils/src/constants.ts b/contracts/test-utils/src/constants.ts index 82ddf44ed8..3c10572ef1 100644 --- a/contracts/test-utils/src/constants.ts +++ b/contracts/test-utils/src/constants.ts @@ -68,4 +68,5 @@ export const constants = { ONE_ETHER: new BigNumber(1e18), EIP712_DOMAIN_NAME: '0x Protocol', EIP712_DOMAIN_VERSION: '3.0.0', + DEFAULT_GAS_PRICE: 1, }; diff --git a/contracts/test-utils/src/transaction_factory.ts b/contracts/test-utils/src/transaction_factory.ts index 9f0b4e165b..ab387d38c6 100644 --- a/contracts/test-utils/src/transaction_factory.ts +++ b/contracts/test-utils/src/transaction_factory.ts @@ -4,6 +4,7 @@ import { BigNumber } from '@0x/utils'; import * as ethUtil from 'ethereumjs-util'; import { getLatestBlockTimestampAsync } from './block_timestamp'; +import { constants } from './constants'; import { signingUtils } from './signing_utils'; export class TransactionFactory { @@ -34,6 +35,7 @@ export class TransactionFactory { signerAddress, data: customTransactionParams.data, expirationTimeSeconds: new BigNumber(currentBlockTimestamp).plus(tenMinutesInSeconds), + gasPrice: new BigNumber(constants.DEFAULT_GAS_PRICE), domain: { verifyingContractAddress: this._exchangeAddress, chainId: this._chainId, diff --git a/contracts/test-utils/src/web3_wrapper.ts b/contracts/test-utils/src/web3_wrapper.ts index b002c70efb..68669abfd8 100644 --- a/contracts/test-utils/src/web3_wrapper.ts +++ b/contracts/test-utils/src/web3_wrapper.ts @@ -4,6 +4,7 @@ import { logUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as _ from 'lodash'; +import { constants } from './constants'; import { coverage } from './coverage'; import { profiler } from './profiler'; import { revertTrace } from './revert_trace'; @@ -31,6 +32,7 @@ switch (process.env.TEST_PROVIDER) { const ganacheTxDefaults = { from: devConstants.TESTRPC_FIRST_ADDRESS, gas: devConstants.GAS_LIMIT, + gasPrice: constants.DEFAULT_GAS_PRICE, }; const gethTxDefaults = { from: devConstants.TESTRPC_FIRST_ADDRESS,