diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-09-20 21:10:15 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-09-20 21:10:15 +0800 |
commit | 03e18ff7c60749fd33228b25077891da26e81d41 (patch) | |
tree | 4f070ec21f55816490dc9dd6a9341b8190d1063b /packages/asset-buyer/src/utils/asset_data_utils.ts | |
parent | d23487bda9fa918d31bb940fffb74f8be0859be5 (diff) | |
download | dexon-0x-contracts-03e18ff7c60749fd33228b25077891da26e81d41.tar.gz dexon-0x-contracts-03e18ff7c60749fd33228b25077891da26e81d41.tar.zst dexon-0x-contracts-03e18ff7c60749fd33228b25077891da26e81d41.zip |
Rename OrderFetcher to OrderProvider and other small improvements
Diffstat (limited to 'packages/asset-buyer/src/utils/asset_data_utils.ts')
-rw-r--r-- | packages/asset-buyer/src/utils/asset_data_utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/asset-buyer/src/utils/asset_data_utils.ts b/packages/asset-buyer/src/utils/asset_data_utils.ts index 10ff31057..d05ff2504 100644 --- a/packages/asset-buyer/src/utils/asset_data_utils.ts +++ b/packages/asset-buyer/src/utils/asset_data_utils.ts @@ -6,7 +6,7 @@ import { AssetBuyerError } from '../types'; export const assetDataUtils = { ...sharedAssetDataUtils, - getEtherTokenAssetData(contractWrappers: ContractWrappers): string { + getEtherTokenAssetDataOrThrow(contractWrappers: ContractWrappers): string { const etherTokenAddressIfExists = contractWrappers.etherToken.getContractAddressIfExists(); if (_.isUndefined(etherTokenAddressIfExists)) { throw new Error(AssetBuyerError.NoEtherTokenContractFound); @@ -14,7 +14,7 @@ export const assetDataUtils = { const etherTokenAssetData = sharedAssetDataUtils.encodeERC20AssetData(etherTokenAddressIfExists); return etherTokenAssetData; }, - getZrxTokenAssetData(contractWrappers: ContractWrappers): string { + getZrxTokenAssetDataOrThrow(contractWrappers: ContractWrappers): string { let zrxTokenAssetData: string; try { zrxTokenAssetData = contractWrappers.exchange.getZRXAssetData(); |