From 04d6fbd7196e517f3ab8a352aec21caa611d0876 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 21 Dec 2023 12:17:34 +0000 Subject: [PATCH 1/2] Fix registerCustom --- hardhat-setup/networks.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardhat-setup/networks.ts b/hardhat-setup/networks.ts index d284eff1..e9085498 100644 --- a/hardhat-setup/networks.ts +++ b/hardhat-setup/networks.ts @@ -55,7 +55,7 @@ export class Networks { registerCustom(name: string, chainId: number, url?: string, privateKey?: string, etherscanKey?: string, apiURL: string = '', browserURL: string = '', hardfork = 'paris') { if (url && privateKey && etherscanKey) { - this.register(name, chainId, hardfork, url, privateKey, name, etherscanKey); + this.register(name, chainId, url, privateKey, name, etherscanKey, hardfork); this.etherscan.customChains.push({ network: name, chainId, urls: { apiURL, browserURL } }); } } diff --git a/package.json b/package.json index 57a54f79..9b64f3c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@1inch/solidity-utils", - "version": "3.5.5", + "version": "3.5.6", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "exports": { From f130041eaa0e9047b9b20c61250105bbbbf48cf7 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 21 Dec 2023 21:11:02 +0000 Subject: [PATCH 2/2] Fix xdai network name for etherscan verification --- hardhat-setup/networks.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardhat-setup/networks.ts b/hardhat-setup/networks.ts index d284eff1..907a501e 100644 --- a/hardhat-setup/networks.ts +++ b/hardhat-setup/networks.ts @@ -105,7 +105,7 @@ export class Networks { this.register('optimistic', 10, process.env.OPTIMISTIC_RPC_URL, process.env.OPTIMISTIC_PRIVATE_KEY, 'optimisticEthereum', process.env.OPTIMISTIC_ETHERSCAN_KEY); this.register('matic', 137, process.env.MATIC_RPC_URL, process.env.MATIC_PRIVATE_KEY, 'polygon', process.env.MATIC_ETHERSCAN_KEY); this.register('arbitrum', 42161, process.env.ARBITRUM_RPC_URL, process.env.ARBITRUM_PRIVATE_KEY, 'arbitrumOne', process.env.ARBITRUM_ETHERSCAN_KEY); - this.register('xdai', 100, process.env.XDAI_RPC_URL, process.env.XDAI_PRIVATE_KEY, 'gnosis', process.env.XDAI_ETHERSCAN_KEY); + this.register('xdai', 100, process.env.XDAI_RPC_URL, process.env.XDAI_PRIVATE_KEY, 'xdai', process.env.XDAI_ETHERSCAN_KEY); this.register('avax', 43114, process.env.AVAX_RPC_URL, process.env.AVAX_PRIVATE_KEY, 'avalanche', process.env.AVAX_ETHERSCAN_KEY); this.register('fantom', 250, process.env.FANTOM_RPC_URL, process.env.FANTOM_PRIVATE_KEY, 'opera', process.env.FANTOM_ETHERSCAN_KEY); this.register('aurora', 1313161554, process.env.AURORA_RPC_URL, process.env.AURORA_PRIVATE_KEY, 'aurora', process.env.AURORA_ETHERSCAN_KEY); diff --git a/package.json b/package.json index 57a54f79..9b64f3c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@1inch/solidity-utils", - "version": "3.5.5", + "version": "3.5.6", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "exports": {