diff --git a/package.json b/package.json index 3995eaf..c1d897b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "token-lists", - "version": "1.14.0", + "version": "1.14.1", "description": "Manages custom token lists for Brave Wallet", "dependencies": { "@metamask/contract-metadata": "git+https://git@github.com/MetaMask/contract-metadata.git", diff --git a/scripts/util.cjs b/scripts/util.cjs index 936844a..37aa8c5 100644 --- a/scripts/util.cjs +++ b/scripts/util.cjs @@ -431,12 +431,6 @@ const generateDappListsForChain = async (chain) => { return filteredDapp }) - // Replace 'binance-smart-chain' with 'binance_smart_chain' so it plays well - // with the browser JSON parser. - if (chain === 'binance-smart-chain') { - chain = 'binance_smart_chain' - } - return dapps } @@ -456,7 +450,14 @@ const generateDappLists = async () => { ] const dappLists = {} for (let chain of chains) { - dappLists[chain] = await generateDappListsForChain(chain) + const dapps = await generateDappListsForChain(chain) + // Replace 'binance-smart-chain' with 'binance_smart_chain' so it plays well + // with the browser JSON parser. + if (chain === 'binance-smart-chain') { + chain = 'binance_smart_chain' + } + + dappLists[chain] = dapps } return dappLists