aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/asset.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-03 04:26:59 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-03 04:26:59 +0800
commit819ba1430337d330dec05be5a4bae5651419bf63 (patch)
tree21bcfa7174b13f0271a82a6e9d1bb7778be9c3c6 /packages/instant/src/util/asset.ts
parent1f3055c1bce264fb728190e7661f70db24ff6cee (diff)
downloaddexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.tar
dexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.tar.gz
dexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.tar.bz2
dexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.tar.lz
dexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.tar.xz
dexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.tar.zst
dexon-sol-tools-819ba1430337d330dec05be5a4bae5651419bf63.zip
fix: change assetdatas for OMG and REP to be all lower case, make MKR blue
Diffstat (limited to 'packages/instant/src/util/asset.ts')
-rw-r--r--packages/instant/src/util/asset.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/instant/src/util/asset.ts b/packages/instant/src/util/asset.ts
index 2efaadbd2..fbfbb19f3 100644
--- a/packages/instant/src/util/asset.ts
+++ b/packages/instant/src/util/asset.ts
@@ -53,7 +53,10 @@ export const assetUtils = {
): AssetMetaData | undefined => {
let mainnetAssetData: string | undefined = assetData;
if (network !== Network.Mainnet) {
- const mainnetAssetDataIfExists = assetUtils.getAssociatedAssetDataIfExists(assetData, network);
+ const mainnetAssetDataIfExists = assetUtils.getAssociatedAssetDataIfExists(
+ assetData.toLowerCase(),
+ network,
+ );
// Just so we don't fail in the case where we are on a non-mainnet network,
// but pass in a valid mainnet assetData.
mainnetAssetData = mainnetAssetDataIfExists || assetData;
@@ -61,7 +64,7 @@ export const assetUtils = {
if (_.isUndefined(mainnetAssetData)) {
return;
}
- const metaData = metaDataMap[mainnetAssetData];
+ const metaData = metaDataMap[mainnetAssetData.toLowerCase()];
if (_.isUndefined(metaData)) {
return;
}