From ca9a7757c6f655c6c6464cb8ae45b21c794c059d Mon Sep 17 00:00:00 2001 From: Anirudha Bose Date: Tue, 12 Dec 2023 21:44:45 +0530 Subject: [PATCH] Rename binance-smart-chain to bnb-chain for dappradar list gen (#99) --- package.json | 2 +- scripts/util.cjs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f9b6905..81870d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "token-lists", - "version": "1.15.0", + "version": "1.16.0", "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 37aa8c5..6177608 100644 --- a/scripts/util.cjs +++ b/scripts/util.cjs @@ -442,7 +442,7 @@ const generateDappLists = async () => { 'solana', 'ethereum', 'polygon', - 'binance-smart-chain', + 'bnb-chain', 'optimism', 'aurora', 'avalanche', @@ -451,9 +451,9 @@ const generateDappLists = async () => { const dappLists = {} for (let chain of chains) { const dapps = await generateDappListsForChain(chain) - // Replace 'binance-smart-chain' with 'binance_smart_chain' so it plays well + // Replace 'bnb-chain' with 'binance_smart_chain' so it plays well // with the browser JSON parser. - if (chain === 'binance-smart-chain') { + if (chain === 'bnb-chain') { chain = 'binance_smart_chain' }