From f8d0d11c2e010785ab9babef870b8b2c2020883a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ace=C3=B1olaza?= Date: Mon, 25 Mar 2024 12:12:28 -0300 Subject: [PATCH] Replaces references with deploymentAddresses from @api3/contracts import --- scripts/deploy-dapi-proxy.js | 2 +- scripts/deploy-data-feed-proxy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-dapi-proxy.js b/scripts/deploy-dapi-proxy.js index e63bd59..6af97d4 100644 --- a/scripts/deploy-dapi-proxy.js +++ b/scripts/deploy-dapi-proxy.js @@ -9,7 +9,7 @@ async function main() { const chainId = hre.network.config.chainId; const dapiProxyAddress = api3Contracts.computeDapiProxyAddress(chainId, dapiName, '0x'); if ((await hre.ethers.provider.getCode(dapiProxyAddress)) === '0x') { - const proxyFactoryAddress = api3Contracts.references.ProxyFactory[chainId.toString()]; + const proxyFactoryAddress = api3Contracts.deploymentAddresses.ProxyFactory[chainId.toString()]; const proxyFactoryArtifact = await hre.artifacts.readArtifact('IProxyFactory'); const proxyFactory = new hre.ethers.Contract( proxyFactoryAddress, diff --git a/scripts/deploy-data-feed-proxy.js b/scripts/deploy-data-feed-proxy.js index c258a1e..e02ea15 100644 --- a/scripts/deploy-data-feed-proxy.js +++ b/scripts/deploy-data-feed-proxy.js @@ -9,7 +9,7 @@ async function main() { const chainId = hre.network.config.chainId; const dataFeedProxyAddress = api3Contracts.computeDataFeedProxyAddress(chainId, dataFeedId, '0x'); if ((await hre.ethers.provider.getCode(dataFeedProxyAddress)) === '0x') { - const proxyFactoryAddress = api3Contracts.references.ProxyFactory[chainId.toString()]; + const proxyFactoryAddress = api3Contracts.deploymentAddresses.ProxyFactory[chainId.toString()]; const proxyFactoryArtifact = await hre.artifacts.readArtifact('IProxyFactory'); const proxyFactory = new hre.ethers.Contract( proxyFactoryAddress,