Skip to content

Commit

Permalink
Remove unused types and simplify contract instantiation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed Aug 26, 2024
1 parent 633c130 commit f287fbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<MockContract> => {
Expand Down Expand Up @@ -164,7 +164,7 @@ export const getSafeProxyRuntimeCode = async (): Promise<string> => {

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) => {
Expand Down

0 comments on commit f287fbe

Please sign in to comment.