Skip to content

Commit

Permalink
Merge pull request #36 from api3dao/deployment-addresses
Browse files Browse the repository at this point in the history
Replaces references with deploymentAddresses from  @api3/contracts im…
  • Loading branch information
acenolaza authored Mar 25, 2024
2 parents d2d9d01 + f8d0d11 commit 2202223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/deploy-dapi-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-data-feed-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2202223

Please sign in to comment.