diff --git a/deploy/1_deploy.ts b/deploy/1_deploy.ts index 390a121..58ec8c8 100644 --- a/deploy/1_deploy.ts +++ b/deploy/1_deploy.ts @@ -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, @@ -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)) {