From 8803ea3217b871f63f4fea2752eabe8b38ece8c0 Mon Sep 17 00:00:00 2001 From: Derek Croote Date: Wed, 27 Dec 2023 11:24:02 -0800 Subject: [PATCH] fix: remove use of references.json chainNames field --- .../components/airnode/ContractAddresses.vue | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/docs/.vuepress/components/airnode/ContractAddresses.vue b/docs/.vuepress/components/airnode/ContractAddresses.vue index 0fa566b638..7bd8cd7634 100644 --- a/docs/.vuepress/components/airnode/ContractAddresses.vue +++ b/docs/.vuepress/components/airnode/ContractAddresses.vue @@ -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({