Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Dec 5, 2024
1 parent a24ff6e commit 1aa30a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
12 changes: 2 additions & 10 deletions packages/plugin-hardhat/src/defender/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import {
DeployContractRequest,
DeployRequestLibraries,
} from '@openzeppelin/defender-sdk-deploy-client';
import {
getContractNameAndRunValidation,
UpgradesError,
} from '@openzeppelin/upgrades-core';
import { getContractNameAndRunValidation, UpgradesError } from '@openzeppelin/upgrades-core';

import artifactsBuildInfo from '@openzeppelin/upgrades-core/artifacts/build-info-v5.json';

Expand All @@ -22,12 +19,7 @@ import UpgradeableBeacon from '@openzeppelin/upgrades-core/artifacts/@openzeppel
import TransparentUpgradeableProxy from '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json';

import { getNetwork, parseTxOverrides } from './utils';
import {
DefenderDeployOptions,
UpgradeOptions,
EthersDeployOptions,
DefenderDeployment,
} from '../utils';
import { DefenderDeployOptions, UpgradeOptions, EthersDeployOptions, DefenderDeployment } from '../utils';
import debug from '../utils/debug';
import { getDeployData } from '../utils/deploy-impl';
import { ContractSourceNotFoundError } from '@openzeppelin/upgrades-core';
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-hardhat/src/deploy-beacon-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function makeDeployBeaconProxy(
]);
}

const BeaconProxyFactory = opts.proxyFactory || await getBeaconProxyFactory(hre, getSigner(attachTo.runner));
const BeaconProxyFactory = opts.proxyFactory || (await getBeaconProxyFactory(hre, getSigner(attachTo.runner)));
const proxyDeployment: Required<ProxyDeployment> & DeployTransaction & RemoteDeploymentId = Object.assign(
{ kind: opts.kind },
await (opts.deployFunction || deploy)(hre, opts, BeaconProxyFactory, beaconAddress, data),
Expand Down
8 changes: 3 additions & 5 deletions packages/plugin-hardhat/src/deploy-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function makeDeployProxy(hre: HardhatRuntimeEnvironment, defenderModule:
throw new InitialOwnerUnsupportedKindError(kind);
}

const ProxyFactory = opts.proxyFactory || await getProxyFactory(hre, signer);
const ProxyFactory = opts.proxyFactory || (await getProxyFactory(hre, signer));
proxyDeployment = Object.assign({ kind }, await deployFn(hre, opts, ProxyFactory, impl, data));
break;
}
Expand All @@ -96,10 +96,8 @@ export function makeDeployProxy(hre: HardhatRuntimeEnvironment, defenderModule:
);
}

const TransparentUpgradeableProxyFactory = opts.proxyFactory || await getTransparentUpgradeableProxyFactory(
hre,
signer,
);
const TransparentUpgradeableProxyFactory =
opts.proxyFactory || (await getTransparentUpgradeableProxyFactory(hre, signer));
proxyDeployment = Object.assign(
{ kind },
await deployFn(hre, opts, TransparentUpgradeableProxyFactory, impl, initialOwner, data),
Expand Down

0 comments on commit 1aa30a9

Please sign in to comment.