Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
fix: remove use of references.json chainNames field
Browse files Browse the repository at this point in the history
  • Loading branch information
dcroote committed Dec 27, 2023
1 parent 57c56b8 commit 8803ea3
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions docs/.vuepress/components/airnode/ContractAddresses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,9 @@ export default {
let notImportantArr = [];

for (const key in response.data[this.contractName]) {
// Here the network is not in chainsRef list
// Is it a testnet or mainnet, tell by its repo name
// Skip if the network is not in chainsRef list
if (!chainsRef[key]) {
let network = 'mainnet';
if (response.data.chainNames[key].indexOf('testnet') > -1) {
network = 'testnet';
}
importantArr.push({
address: response.data[this.contractName][key],
chainId: parseInt(key),
fullname: response.data.chainNames[key],
type: network,
});
// Here the chain is in the chainsRef list
continue;
} else if (chainsRef[key].type === this.type) {
if (important.includes(parseInt(key))) {
importantArr.push({
Expand Down

0 comments on commit 8803ea3

Please sign in to comment.