Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Jan 28, 2025
1 parent 27c1034 commit 192372b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const config: HardhatUserConfig = {
dependencyCompiler: {
paths: [
"@safe-global/safe-contracts/contracts/proxies/SafeProxyFactory.sol",
"@safe-global/safe-contracts/contracts/Safe.sol",
],
},
};
Expand Down
11 changes: 10 additions & 1 deletion test/NoDelegateCall.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("Example module tests", async function () {
await ethers.getContractFactory("NoDegegateCallGuard", deployer)
).deploy();

const safe = await ethers.getContractAt("Safe", safeAddress);
safe = await ethers.getContractAt("Safe", safeAddress);

// Enable the module in the safe
const enableModuleData = masterCopy.interface.encodeFunctionData(
Expand Down Expand Up @@ -100,5 +100,14 @@ describe("Example module tests", async function () {
"0x",
1
)).to.be.revertedWithCustomError(exampleGuard, "DelegateCallNotAllowed");

expect(await execTransaction(
wallets,
safe,
ZeroAddress,
0,
"0x",
0
));
});
});

0 comments on commit 192372b

Please sign in to comment.