From f287fbe7a14e333a7c2774fb6ccf397d4f5688c5 Mon Sep 17 00:00:00 2001 From: Mikhail <16622558+mmv08@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:07:06 +0200 Subject: [PATCH] Remove unused types and simplify contract instantiation. --- test/utils/setup.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/utils/setup.ts b/test/utils/setup.ts index 67a6f2312..b315d2c8d 100644 --- a/test/utils/setup.ts +++ b/test/utils/setup.ts @@ -7,7 +7,7 @@ import { logGas } from "../../src/utils/execution"; import { safeContractUnderTest } from "./config"; import { zkCompile } from "./zkSync"; import { getRandomIntAsString } from "./numbers"; -import { DelegateCaller, MockContract, Safe, SafeL2, SafeMigration } from "../../typechain-types"; +import { MockContract, Safe, SafeL2 } from "../../typechain-types"; type SafeSingleton = { readonly singleton?: Safe | SafeL2; @@ -91,7 +91,7 @@ export const migrationContractFactory = async () => { export const safeMigrationContract = async () => { const safeMigration = await hre.ethers.getContractAt("SafeMigration", (await deployments.get("SafeMigration")).address); - return safeMigration as unknown as SafeMigration; + return safeMigration; }; export const getMock = async (): Promise => { @@ -164,7 +164,7 @@ export const getSafeProxyRuntimeCode = async (): Promise => { export const getDelegateCaller = async () => { const DelegateCaller = await hre.ethers.getContractFactory("DelegateCaller"); - return (await DelegateCaller.deploy()) as DelegateCaller; + return await DelegateCaller.deploy(); }; export const compile = async (source: string) => {