Skip to content

Commit

Permalink
fix: use unknown instead of any
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Feb 6, 2024
1 parent 277e8f6 commit 0299d35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/deploy/3_upgrade_repo/30_upgrade_repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
// Prepare optional initialization data

// TODO Add `initializeFrom` function to `PluginRepo`.
const initializeFromCalldata: any[] = [];
const initializeFromCalldata: unknown[] = [];
/*
const initData: any[] = [];
const initData: unknown[] = [];
const initializeFromCalldata =
newPluginRepoImplementation.interface.encodeFunctionData('initializeFrom', [
current,
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/utils/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function delay(ms: number) {

export const verifyContract = async (
address: string,
constructorArguments: any[]
constructorArguments: unknown[]
) => {
try {
const msDelay = 500; // minimum delay between tasks
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/utils/hardhat.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type VerifyEntry = {
address: string;
args?: any[];
args?: unknown[];
};

declare module 'hardhat/types' {
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function addDeployedRepo(
networkName: string,
repoName: string,
contractAddr: string,
args: any[],
args: unknown[],
blockNumber: number
) {
const aragonDeploymentsInfo = getAragonDeploymentsInfo(networkName);
Expand Down

0 comments on commit 0299d35

Please sign in to comment.