aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/error_description.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/util/error_description.ts')
-rw-r--r--packages/instant/src/util/error_description.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/util/error_description.ts b/packages/instant/src/util/error_description.ts
index 78af9e9ff..9419a1e16 100644
--- a/packages/instant/src/util/error_description.ts
+++ b/packages/instant/src/util/error_description.ts
@@ -1,10 +1,10 @@
import { AssetBuyerError } from '@0xproject/asset-buyer';
-import { bestNameForAsset } from '../util/asset_data';
+import { assetDataUtil } from '../util/asset_data';
const humanReadableMessageForError = (error: Error, assetData?: string): string | undefined => {
if (error.message === AssetBuyerError.InsufficientAssetLiquidity) {
- const assetName = bestNameForAsset(assetData, 'of this asset');
+ const assetName = assetDataUtil.bestNameForAsset(assetData, 'of this asset');
return `Not enough ${assetName} available`;
}