diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:40:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 02:40:27 +0800 |
commit | 96febf663924445363e0120b7341bf0c12b03700 (patch) | |
tree | 73930dcb56db0c1ef38befea5418847ff09e189f /packages/contracts/src/utils/order_utils.ts | |
parent | 09e59cf67761e86046221d058a9632730a5a632a (diff) | |
parent | 5456187dd03c0dd5eb141259541e7fe65f2c9ad8 (diff) | |
download | dexon-0x-contracts-96febf663924445363e0120b7341bf0c12b03700.tar.gz dexon-0x-contracts-96febf663924445363e0120b7341bf0c12b03700.tar.zst dexon-0x-contracts-96febf663924445363e0120b7341bf0c12b03700.zip |
Merge pull request #605 from 0xProject/fix/multiple/build-errors
Fix build/lint errors and warnings
Diffstat (limited to 'packages/contracts/src/utils/order_utils.ts')
-rw-r--r-- | packages/contracts/src/utils/order_utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/contracts/src/utils/order_utils.ts b/packages/contracts/src/utils/order_utils.ts index 7a482ad9e..8adc6b735 100644 --- a/packages/contracts/src/utils/order_utils.ts +++ b/packages/contracts/src/utils/order_utils.ts @@ -4,7 +4,7 @@ import ethUtil = require('ethereumjs-util'); import * as _ from 'lodash'; import { crypto } from './crypto'; -import { OrderStruct, SignatureType, SignedOrder, UnsignedOrder } from './types'; +import { CancelOrder, MatchOrder, OrderStruct, SignatureType, SignedOrder, UnsignedOrder } from './types'; export const orderUtils = { createFill: (signedOrder: SignedOrder, takerAssetFillAmount?: BigNumber) => { @@ -15,7 +15,7 @@ export const orderUtils = { }; return fill; }, - createCancel(signedOrder: SignedOrder, takerAssetCancelAmount?: BigNumber) { + createCancel(signedOrder: SignedOrder, takerAssetCancelAmount?: BigNumber): CancelOrder { const cancel = { order: orderUtils.getOrderStruct(signedOrder), takerAssetCancelAmount: takerAssetCancelAmount || signedOrder.takerAssetAmount, @@ -80,7 +80,7 @@ export const orderUtils = { const orderHashHex = `0x${orderHashBuff.toString('hex')}`; return orderHashHex; }, - createMatchOrders(signedOrderLeft: SignedOrder, signedOrderRight: SignedOrder) { + createMatchOrders(signedOrderLeft: SignedOrder, signedOrderRight: SignedOrder): MatchOrder { const fill = { left: orderUtils.getOrderStruct(signedOrderLeft), right: orderUtils.getOrderStruct(signedOrderRight), |