@0x/contracts-exchange: Fix broken tests.

`@0x/contracts-test-utils`: Remove unecessary wait timeout in
`LogDecoder`.
This commit is contained in:
Lawrence Forman
2019-08-08 02:47:10 -04:00
parent 14fe3045dc
commit c83864af9c
2 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
// tslint:disable: max-file-line-count
import { ERC20ProxyContract, ERC20Wrapper } from '@0x/contracts-asset-proxy';
import { DummyERC20TokenContract } from '@0x/contracts-erc20';
import { artifacts as erc20Artifacts, DummyERC20TokenContract } from '@0x/contracts-erc20';
import {
blockchainTests,
constants,
@@ -25,7 +25,7 @@ import * as ethUtil from 'ethereumjs-util';
import * as _ from 'lodash';
import {
artifacts,
artifacts as localArtifacts,
constants as exchangeConstants,
ExchangeCancelEventArgs,
ExchangeCancelUpToEventArgs,
@@ -40,6 +40,8 @@ import {
WhitelistContract,
} from '../src/';
const artifacts = { ...erc20Artifacts, ...localArtifacts };
// tslint:disable:no-unnecessary-type-assertion
blockchainTests.resets('Exchange transactions', env => {
let chainId: number;

View File

@@ -45,10 +45,7 @@ export class LogDecoder {
return logWithDecodedArgsOrLog;
}
public async getTxWithDecodedLogsAsync(txHash: string): Promise<TransactionReceiptWithDecodedLogs> {
const receipt = await this._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
constants.AWAIT_TRANSACTION_MINED_MS,
);
const receipt = await this._web3Wrapper.awaitTransactionSuccessAsync(txHash);
return this.decodeReceiptLogs(receipt);
}
public decodeReceiptLogs(receipt: TransactionReceipt): TransactionReceiptWithDecodedLogs {