Skip to content

Commit

Permalink
Ensure we convert binance-smart-chain to binance_smart_chain (#93)
Browse files Browse the repository at this point in the history
* Ensure we convert binance-smart-chain to binance_smart_chain

* Bump version to 1.14.1
  • Loading branch information
nvonpentz authored Nov 2, 2023
1 parent 03c7e5e commit ceb3f18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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://[email protected]/MetaMask/contract-metadata.git",
Expand Down
15 changes: 8 additions & 7 deletions scripts/util.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
Expand Down

0 comments on commit ceb3f18

Please sign in to comment.