aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline
diff options
context:
space:
mode:
authorXianny <8582774+xianny@users.noreply.github.com>2018-12-11 07:08:13 +0800
committerGitHub <noreply@github.com>2018-12-11 07:08:13 +0800
commit7be2dab9d558a75a9944fec99a33437c5a221a92 (patch)
tree3532b79e63a7e73f5c8b0fbca7c9432665c7dea7 /packages/pipeline
parent86f1697934436faa6c0c2aea7c958b7d0f3496ba (diff)
downloaddexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.tar
dexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.tar.gz
dexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.tar.bz2
dexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.tar.lz
dexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.tar.xz
dexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.tar.zst
dexon-sol-tools-7be2dab9d558a75a9944fec99a33437c5a221a92.zip
perform null check on token metadata (#1412)
Diffstat (limited to 'packages/pipeline')
-rw-r--r--packages/pipeline/src/parsers/token_metadata/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pipeline/src/parsers/token_metadata/index.ts b/packages/pipeline/src/parsers/token_metadata/index.ts
index 3b3e05d76..f258af063 100644
--- a/packages/pipeline/src/parsers/token_metadata/index.ts
+++ b/packages/pipeline/src/parsers/token_metadata/index.ts
@@ -38,7 +38,7 @@ function parseZeroExTrustedToken(resp: ZeroExTrustedTokenMeta): TokenMetadata {
const trustedToken = new TokenMetadata();
trustedToken.address = resp.address;
- trustedToken.decimals = new BigNumber(resp.decimals);
+ trustedToken.decimals = resp.decimals ? new BigNumber(resp.decimals) : null;
trustedToken.symbol = resp.symbol;
trustedToken.name = resp.name;
trustedToken.authority = '0x';