diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-24 09:30:27 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-24 09:30:58 +0800 |
commit | 9c26334eff75087f52db152aa2715681504cda78 (patch) | |
tree | 045cbc0fa480df4b6d63499cc835f2a394ff749c /packages/contract-wrappers/src/utils | |
parent | 2c04ee3f5e4438f9ae51944e7ea6bd6b501317a7 (diff) | |
download | dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.tar dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.tar.gz dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.tar.bz2 dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.tar.lz dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.tar.xz dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.tar.zst dexon-sol-tools-9c26334eff75087f52db152aa2715681504cda78.zip |
fix(contract-wrappers): Fix tslint errors that were lingering due to misconfiguration
Diffstat (limited to 'packages/contract-wrappers/src/utils')
-rw-r--r-- | packages/contract-wrappers/src/utils/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/utils/utils.ts b/packages/contract-wrappers/src/utils/utils.ts index fbacdaa28..0b3270e78 100644 --- a/packages/contract-wrappers/src/utils/utils.ts +++ b/packages/contract-wrappers/src/utils/utils.ts @@ -1,5 +1,6 @@ import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; +import * as _ from 'lodash'; import { constants } from './constants'; @@ -14,4 +15,7 @@ export const utils = { numberPercentageToEtherTokenAmountPercentage(percentage: number): BigNumber { return Web3Wrapper.toBaseUnitAmount(constants.ONE_AMOUNT, constants.ETHER_TOKEN_DECIMALS).mul(percentage); }, + removeUndefinedProperties<T extends object>(obj: T): Partial<T> { + return _.pickBy(obj); + }, }; |