Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Oct 8, 2024
1 parent c9bb19a commit 866019e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions deploy/deploy-SafeOrderBuilder.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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({
Expand All @@ -46,15 +48,15 @@ module.exports = async ({ deployments }) => {
contractName: 'OrderRegistrator',
constructorArgs: [ROUTER_V6_ADDR],
deploymentName: 'OrderRegistrator',
create3Deployer: create3Deployer,
create3Deployer,
salt: ORDER_REGISTRATOR_SALT,
deployments,
});
await deployAndGetContractWithCreate3({
contractName: 'SafeOrderBuilder',
constructorArgs: [ROUTER_V6_ADDR, await orderRegistrator.getAddress()],
deploymentName: 'SafeOrderBuilder',
create3Deployer: create3Deployer,
create3Deployer,
salt: SAFE_ORDER_BUILDER_SALT,
deployments,
});
Expand Down

0 comments on commit 866019e

Please sign in to comment.