Use default gasPrice in Forwarder tests

This commit is contained in:
Amir Bandeali
2019-08-23 09:33:05 -07:00
parent 8f8c16bd0e
commit 830d6f726e

View File

@@ -45,7 +45,7 @@ blockchainTests.only(ContractName.Forwarder, env => {
let tx: TransactionReceiptWithDecodedLogs;
let erc721MakerAssetIds: BigNumber[];
let gasPrice: BigNumber;
const gasPrice = new BigNumber(constants.DEFAULT_GAS_PRICE);
before(async () => {
await env.blockchainLifecycle.startAsync();
@@ -61,10 +61,6 @@ blockchainTests.only(ContractName.Forwarder, env => {
forwarderFeeRecipientAddress,
] = accounts);
const txHash = await env.web3Wrapper.sendTransactionAsync({ from: accounts[0], to: accounts[0], value: 0 });
const transaction = await env.web3Wrapper.getTransactionByHashAsync(txHash);
gasPrice = new BigNumber(transaction.gasPrice);
const erc721Wrapper = new ERC721Wrapper(env.provider, usedAddresses, owner);
erc20Wrapper = new ERC20Wrapper(env.provider, usedAddresses, owner);