diff --git a/test/libraries/SafeToL2Migration.spec.ts b/test/libraries/SafeToL2Migration.spec.ts index 1caa477..32510ee 100644 --- a/test/libraries/SafeToL2Migration.spec.ts +++ b/test/libraries/SafeToL2Migration.spec.ts @@ -2,7 +2,6 @@ import { expect } from "chai"; import hre, { ethers, deployments } from "hardhat"; import { AddressZero } from "@ethersproject/constants"; import { getSafe, getSafeSingletonAt, getMock } from "../utils/setup"; - import deploymentData from "../json/safeDeployment.json"; import safeRuntimeBytecode from "../json/safeRuntimeBytecode.json"; import { @@ -89,6 +88,7 @@ describe("SafeToL2Migration library", () => { const migration = await safeToL2MigrationContract.deploy(); return { + safe111: await getSafe({ singleton: singleton111, owners: [user1.address] }), safe130: await getSafe({ singleton: singleton130, owners: [user1.address] }), safe141: await getSafe({ singleton: singleton141, owners: [user1.address] }), diff --git a/test/utils/setup.ts b/test/utils/setup.ts index e6dd452..d11cc83 100644 --- a/test/utils/setup.ts +++ b/test/utils/setup.ts @@ -142,6 +142,7 @@ export const getSafeTemplateWithSingleton = async (singleton: Contract | Safe, s const singletonAddress = await singleton.getAddress(); const factory = await getFactory(); const template = await factory.createProxyWithNonce.staticCall(singletonAddress, "0x", saltNumber); + await factory.createProxyWithNonce(singletonAddress, "0x", saltNumber).then((tx) => tx.wait()); return singleton.attach(template) as Safe | SafeL2; };