Skip to content

Commit 192372b

Browse files
committed
Fix tests
1 parent 27c1034 commit 192372b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

hardhat.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const config: HardhatUserConfig = {
1212
dependencyCompiler: {
1313
paths: [
1414
"@safe-global/safe-contracts/contracts/proxies/SafeProxyFactory.sol",
15+
"@safe-global/safe-contracts/contracts/Safe.sol",
1516
],
1617
},
1718
};

test/NoDelegateCall.test.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("Example module tests", async function () {
6868
await ethers.getContractFactory("NoDegegateCallGuard", deployer)
6969
).deploy();
7070

71-
const safe = await ethers.getContractAt("Safe", safeAddress);
71+
safe = await ethers.getContractAt("Safe", safeAddress);
7272

7373
// Enable the module in the safe
7474
const enableModuleData = masterCopy.interface.encodeFunctionData(
@@ -100,5 +100,14 @@ describe("Example module tests", async function () {
100100
"0x",
101101
1
102102
)).to.be.revertedWithCustomError(exampleGuard, "DelegateCallNotAllowed");
103+
104+
expect(await execTransaction(
105+
wallets,
106+
safe,
107+
ZeroAddress,
108+
0,
109+
"0x",
110+
0
111+
));
103112
});
104113
});

0 commit comments

Comments
 (0)