aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/protocol/test/utils/exchange_wrapper.ts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-12-24 13:54:51 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-01-15 02:49:44 +0800
commitf39c03191c8a8870aaf5180d2764cd8c8eb17d0c (patch)
treedd6366ca1c7a799d3d92e73436766bd0c278b071 /contracts/protocol/test/utils/exchange_wrapper.ts
parent05adb38a09021581e955d45644c4b34ea720fe74 (diff)
downloaddexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.tar
dexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.tar.gz
dexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.tar.bz2
dexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.tar.lz
dexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.tar.xz
dexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.tar.zst
dexon-sol-tools-f39c03191c8a8870aaf5180d2764cd8c8eb17d0c.zip
Ran linter
Diffstat (limited to 'contracts/protocol/test/utils/exchange_wrapper.ts')
-rw-r--r--contracts/protocol/test/utils/exchange_wrapper.ts13
1 files changed, 5 insertions, 8 deletions
diff --git a/contracts/protocol/test/utils/exchange_wrapper.ts b/contracts/protocol/test/utils/exchange_wrapper.ts
index 804b0141e..0feb5af15 100644
--- a/contracts/protocol/test/utils/exchange_wrapper.ts
+++ b/contracts/protocol/test/utils/exchange_wrapper.ts
@@ -7,12 +7,11 @@ import {
SignedTransaction,
} from '@0x/contracts-test-utils';
import { artifacts as tokensArtifacts } from '@0x/contracts-tokens';
-import { OrderWithoutExchangeAddress, SignedOrder } from '@0x/types';
-import { BigNumber } from '@0x/utils';
+import { SignedOrder } from '@0x/types';
+import { AbiEncoder, BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
import { AbiDefinition, MethodAbi, Provider, TransactionReceiptWithDecodedLogs } from 'ethereum-types';
import * as _ from 'lodash';
-import { AbiEncoder } from '@0x/utils';
import { ExchangeContract } from '../../generated-wrappers/exchange';
import { artifacts } from '../../src/artifacts';
@@ -279,12 +278,10 @@ export class ExchangeWrapper {
);
return data;
}
- public abiDecodeFillOrder(
- data: string,
- ): AbiDecodedFillOrderData {
+ public abiDecodeFillOrder(data: string): AbiDecodedFillOrderData {
// Lookup fillOrder ABI
- let fillOrderAbi = _.find(this._exchange.abi, (value: AbiDefinition) => {
- if (value.type === 'function' && (value as MethodAbi).name === 'fillOrder') {
+ const fillOrderAbi = _.find(this._exchange.abi, (value: AbiDefinition) => {
+ if (value.type === 'function' && (value as any).name === 'fillOrder') {
return true;
}
return false;