Skip to content

Commit

Permalink
All tests passing! 馃帀
Browse files Browse the repository at this point in the history
  • Loading branch information
auryn-macmillan committed Dec 16, 2021
1 parent 1b108b2 commit efe15bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions test/FactoryFriendly.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("Module works with factory", () => {
FirstAddress
);

return { factory, masterCopy };
return { factory, masterCopy, Modifier };
});

it("should throw because master copy is already initialized", async () => {
Expand All @@ -47,7 +47,7 @@ describe("Module works with factory", () => {
});

it("should deploy new roles module proxy", async () => {
const { factory, masterCopy } = await baseSetup();
const { factory, masterCopy, Modifier } = await baseSetup();
const [avatar, owner, target] = await ethers.getSigners();
const paramsValues = [owner.address, avatar.address, target.address];
const encodedParams = [new AbiCoder().encode(paramsTypes, paramsValues)];
Expand All @@ -66,7 +66,8 @@ describe("Module works with factory", () => {
({ event }: { event: string }) => event === "ModuleProxyCreation"
);

const newProxy = await hre.ethers.getContractAt("Roles", newProxyAddress);
const newProxy = Modifier.attach(newProxyAddress);
// const newProxy = await hre.ethers.getContractAt("Roles", newProxyAddress);
expect(await newProxy.avatar()).to.be.eq(avatar.address);
expect(await newProxy.target()).to.be.eq(target.address);
});
Expand Down
2 changes: 1 addition & 1 deletion test/Roles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ describe("RolesModifier", async () => {
describe("setMultiSend()", () => {
it("reverts if not authorized", async () => {
const { avatar, modifier } = await txSetup();
expect(modifier.setMultiSend(AddressOne, true)).to.be.revertedWith(
await expect(modifier.setMultiSend(AddressOne)).to.be.revertedWith(
"Ownable: caller is not the owner"
);
});
Expand Down

0 comments on commit efe15bb

Please sign in to comment.