aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/util/asset.ts4
-rw-r--r--packages/instant/test/util/error.test.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/util/asset.ts b/packages/instant/src/util/asset.ts
index e0d5ffcb7..a105a7c2b 100644
--- a/packages/instant/src/util/asset.ts
+++ b/packages/instant/src/util/asset.ts
@@ -37,9 +37,9 @@ export const assetUtils = {
const metaData = asset.metaData;
switch (metaData.assetProxyId) {
case AssetProxyId.ERC20:
- return metaData.symbol;
+ return metaData.symbol.toUpperCase();
case AssetProxyId.ERC721:
- return metaData.name;
+ return metaData.name.toUpperCase();
default:
return defaultName;
}
diff --git a/packages/instant/test/util/error.test.ts b/packages/instant/test/util/error.test.ts
index b009db91a..90e9c5fb4 100644
--- a/packages/instant/test/util/error.test.ts
+++ b/packages/instant/test/util/error.test.ts
@@ -48,7 +48,7 @@ describe('errorUtil', () => {
});
it('should return default for AssetUnavailable error', () => {
const assetUnavailableError = new Error(`${AssetBuyerError.AssetUnavailable}: For assetData xyz`);
- expect(errorUtil.errorDescription(assetUnavailableError, ZRX_ASSET).message).toEqual(
+ expect(errorUtil.errorDescription(assetUnavailableError, undefined).message).toEqual(
'This asset is currently unavailable',
);
});