Skip to content

Commit

Permalink
Use Api3MarketV2 as the AirseekerRegistry owner during deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenligiray committed Oct 26, 2024
1 parent 1c5b2d8 commit 7e0fe1b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions deploy/1_deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,7 @@ module.exports = async () => {
}

if (chainsSupportedByMarket.includes(network.name)) {
await deployments.get('AirseekerRegistry').catch(async () => {
log(`Deploying AirseekerRegistry`);
return deploy('AirseekerRegistry', {
from: deployer!.address,
args: [await ownableCallForwarder.getAddress(), api3ServerV1.address],
log: true,
deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '',
});
});

await deployments.get('Api3MarketV2').catch(async () => {
const api3MarketV2 = await deployments.get('Api3MarketV2').catch(async () => {
log(`Deploying Api3MarketV2`);
return deploy('Api3MarketV2', {
from: deployer!.address,
Expand All @@ -140,6 +130,16 @@ module.exports = async () => {
deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '',
});
});

await deployments.get('AirseekerRegistry').catch(async () => {
log(`Deploying AirseekerRegistry`);
return deploy('AirseekerRegistry', {
from: deployer!.address,
args: [api3MarketV2.address, api3ServerV1.address],
log: true,
deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '',
});
});
}

if (chainsSupportedByOevAuctions.includes(network.name)) {
Expand Down

0 comments on commit 7e0fe1b

Please sign in to comment.