diff options
author | Jake Ellowitz <wakkadojo@users.noreply.github.com> | 2018-11-27 06:55:45 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:17:33 +0800 |
commit | 1878a0c4b07273d341cefba79a2393d8891ae231 (patch) | |
tree | 8e7e1a8d152fa4093e7e48c7229d284b2d7cf5e8 /packages | |
parent | b538fabdef06d734661997a00960bc8a628506f2 (diff) | |
download | dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.tar dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.tar.gz dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.tar.bz2 dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.tar.lz dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.tar.xz dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.tar.zst dexon-0x-contracts-1878a0c4b07273d341cefba79a2393d8891ae231.zip |
updating comment for 0x trusted tokens
Diffstat (limited to 'packages')
-rw-r--r-- | packages/pipeline/src/parsers/token_metadata/index.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/pipeline/src/parsers/token_metadata/index.ts b/packages/pipeline/src/parsers/token_metadata/index.ts index d09def0db..916448cb3 100644 --- a/packages/pipeline/src/parsers/token_metadata/index.ts +++ b/packages/pipeline/src/parsers/token_metadata/index.ts @@ -14,14 +14,13 @@ export function parseMetamaskTrustedTokens(rawResp: Map<string, MetamaskTrustedT /** * Parses 0x's trusted tokens list. - * @param rawResp raw response from the 0x json file. + * @param rawResp raw response from the 0x trusted tokens file. */ export function parseZeroExTrustedTokens(rawResp: ZeroExTrustedTokenMeta[]): TokenMetadata[] { return R.map(parseZeroExTrustedToken, rawResp); } function parseMetamaskTrustedToken(resp: MetamaskTrustedTokenMeta, address: string): TokenMetadata { - const trustedToken = new TokenMetadata(); trustedToken.address = address; @@ -34,7 +33,6 @@ function parseMetamaskTrustedToken(resp: MetamaskTrustedTokenMeta, address: stri } function parseZeroExTrustedToken(resp: ZeroExTrustedTokenMeta): TokenMetadata { - const trustedToken = new TokenMetadata(); trustedToken.address = resp.address; |