Skip to content

Commit

Permalink
fix: duplicate addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Apr 30, 2024
1 parent 211e1d1 commit 9927f3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 36 deletions.
14 changes: 0 additions & 14 deletions data/addresses.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
"chain_name": "eth_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"category": "messaging",
Expand Down Expand Up @@ -160,13 +153,6 @@
"chain_name": "zeta_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "messaging",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe",
"category": "omnichain",
Expand Down
7 changes: 0 additions & 7 deletions data/addresses.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@
"chain_name": "zeta_testnet",
"type": "uniswapV2Factory"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "messaging",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"type": "uniswapV2Factory"
},
{
"address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe",
"category": "omnichain",
Expand Down
7 changes: 0 additions & 7 deletions tasks/addresses.mainnet.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"category": "messaging",
Expand Down
16 changes: 8 additions & 8 deletions tasks/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,15 @@ const fetchFactoryV2 = async (addresses: any, hre: HardhatRuntimeEnvironment, ne
chain_name: router.chain_name,
type: "weth9",
});
}

addresses.push({
address: factoryAddress,
category: "messaging",
chain_id: router.chain_id,
chain_name: router.chain_name,
type: "uniswapV2Factory",
});
addresses.push({
address: factoryAddress,
category: "messaging",
chain_id: router.chain_id,
chain_name: router.chain_name,
type: "uniswapV2Factory",
});
}
} catch (error) {
console.error(`Error fetching factory and WETH for router v2 ${router.address}:`, error);
}
Expand Down

0 comments on commit 9927f3c

Please sign in to comment.