From 866019ede889ecc55cff12806b3eb4b73f1c86cb Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 8 Oct 2024 16:11:19 +0100 Subject: [PATCH] Fix linter --- deploy/deploy-SafeOrderBuilder.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy/deploy-SafeOrderBuilder.js b/deploy/deploy-SafeOrderBuilder.js index d2d60b55..b34f8e6b 100644 --- a/deploy/deploy-SafeOrderBuilder.js +++ b/deploy/deploy-SafeOrderBuilder.js @@ -1,6 +1,6 @@ const hre = require('hardhat'); -const { ethers, getChainId } = hre; -const { saveContractWithCreate3Deployment, deployAndGetContractWithCreate3, deployAndGetContract } = require('@1inch/solidity-utils'); +const { ethers, getChainId, getNamedAccounts } = hre; +const { deployAndGetContractWithCreate3, deployAndGetContract } = require('@1inch/solidity-utils'); const { getNetwork } = require('@1inch/solidity-utils/hardhat-setup'); const ROUTER_V6_ADDR = '0x111111125421ca6dc452d289314280a0f8842a65'; @@ -23,6 +23,8 @@ module.exports = async ({ deployments }) => { return; } + const { deployer } = await getNamedAccounts(); + if (getNetwork().indexOf('zksync') !== -1) { // ZkSync deploy without create3 const orderRegistrator = await deployAndGetContract({ @@ -46,7 +48,7 @@ module.exports = async ({ deployments }) => { contractName: 'OrderRegistrator', constructorArgs: [ROUTER_V6_ADDR], deploymentName: 'OrderRegistrator', - create3Deployer: create3Deployer, + create3Deployer, salt: ORDER_REGISTRATOR_SALT, deployments, }); @@ -54,7 +56,7 @@ module.exports = async ({ deployments }) => { contractName: 'SafeOrderBuilder', constructorArgs: [ROUTER_V6_ADDR, await orderRegistrator.getAddress()], deploymentName: 'SafeOrderBuilder', - create3Deployer: create3Deployer, + create3Deployer, salt: SAFE_ORDER_BUILDER_SALT, deployments, });