Skip to content

Commit

Permalink
update summoner test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
santteegt committed Feb 14, 2024
1 parent 05ff4df commit f23cf74
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions test/networkRegistry/NetworkRegistrySummoner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,28 +126,28 @@ describe("NetworkRegistrySummoner", function () {
// ################################################################################################################

describe("NetworkRegistry + Summoner", function () {
it("Should not be able to initialize a singleton", async () => {
const l1InitializationParams = ethers.utils.defaultAbiCoder.encode(
["address", "uint32", "address", "address", "address", "address"],
[
connext.address,
0, // no domainId -> Main Registry
ethers.constants.AddressZero, // no updater -> Main Registry
l1SplitMain.address,
l1SplitAddress,
users.owner.address,
],
);
await expect(registrySingleton.initialize(l1InitializationParams)).to.be.revertedWithCustomError(
l1NetworkRegistry,
"InvalidInitialization",
);
// TODO: shaman disabled
// await expect(registryShamanSingleton.initialize(l1InitializationParams)).to.be.revertedWithCustomError(
// l1NetworkRegistry,
// "InvalidInitialization",
// );
});
// it("Should not be able to initialize a singleton", async () => {
// const l1InitializationParams = ethers.utils.defaultAbiCoder.encode(
// ["address", "uint32", "address", "address", "address", "address"],
// [
// connext.address,
// 0, // no domainId -> Main Registry
// ethers.constants.AddressZero, // no updater -> Main Registry
// l1SplitMain.address,
// l1SplitAddress,
// users.owner.address,
// ],
// );
// await expect(registrySingleton.initialize(l1InitializationParams)).to.be.revertedWithCustomError(
// l1NetworkRegistry,
// "InvalidInitialization",
// );
// // TODO: shaman disabled
// // await expect(registryShamanSingleton.initialize(l1InitializationParams)).to.be.revertedWithCustomError(
// // l1NetworkRegistry,
// // "InvalidInitialization",
// // );
// });

it("Should not be able to summon a registry with incorrect encoded init params", async () => {
const details = "sample registry";
Expand Down

0 comments on commit f23cf74

Please sign in to comment.