Skip to content

Commit

Permalink
test: adjusting existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kupermind committed Dec 14, 2023
1 parent 8134616 commit fe96ae9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/CM.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ describe("Community Multisig", function () {
let governor;
let signers;
let deployer;
let l1BridgeMediators;
let l2BridgeMediators;
const AddressZero = "0x" + "0".repeat(40);
const Bytes32Zero = "0x" + "0".repeat(64);
const Bytes4Zero = "0x" + "0".repeat(8);
Expand Down Expand Up @@ -87,8 +89,11 @@ describe("Community Multisig", function () {
initialProposalThreshold, quorum);
await governor.deployed();

l1BridgeMediators = [signers[1].address, signers[2].address];
l2BridgeMediators = [signers[3].address, signers[4].address];
const GuardCM = await ethers.getContractFactory("GuardCM");
guard = await GuardCM.deploy(timelock.address, multisig.address, governor.address);
guard = await GuardCM.deploy(timelock.address, multisig.address, governor.address, l1BridgeMediators,
l2BridgeMediators, [100, 137]);
await guard.deployed();
});

Expand Down Expand Up @@ -373,6 +378,11 @@ describe("Community Multisig", function () {
// Take a snapshot of the current state of the blockchain
const snapshot = await helpers.takeSnapshot();

// Change the proposal Id to a known one
payload = guard.interface.encodeFunctionData("changeGovernorCheckProposalId",

Check failure on line 382 in test/CM.js

View workflow job for this annotation

GitHub Actions / build

'payload' is not defined
["62151151991217526951504761219057817227643973118811130641152828658327965685127"]);
await timelock.execute(guard.address, payload);

Check failure on line 384 in test/CM.js

View workflow job for this annotation

GitHub Actions / build

'payload' is not defined

// Setting the CM guard
let nonce = await multisig.nonce();
let txHashData = await safeContracts.buildContractCall(multisig, "setGuard", [guard.address], nonce, 0, 0);
Expand Down

0 comments on commit fe96ae9

Please sign in to comment.