Add default gasPrice to web3Wrapper instance and TransactionFactory

This commit is contained in:
Amir Bandeali
2019-08-20 16:48:13 -07:00
parent 23dd711396
commit 2b1e0be4fc
3 changed files with 5 additions and 0 deletions

View File

@@ -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,