Skip to content

Commit

Permalink
when a signature from a non-relayer is included
Browse files Browse the repository at this point in the history
  • Loading branch information
evelinemolnar committed Oct 10, 2024
1 parent e32bce0 commit ec6ce96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/Bridge.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,20 @@ describe("Bridge", async function () {
);
});
});
describe("when a signature from a non-relayer is included", async function () {
dataToSign = await getExecuteTransferData([mvxTxn], batchNonce);
signature1 = await adminWallet.signMessage(dataToSign);
signature2 = await relayer1.signMessage(dataToSign);
signature3 = await relayer2.signMessage(dataToSign);
signature4 = await relayer3.signMessage(dataToSign);
signature5 = await relayer5.signMessage(dataToSign);
signature6 = await relayer6.signMessage(dataToSign);
signature7 = await otherWallet.signMessage(dataToSign);
signatures = [signature1, signature2, signature3, signature4, signature5, signature6, signature7];

it("reverts with 'Quorum was not met'", async function () {
await expect(bridge.executeTransfer([mvxTxn], batchNonce, signatures)).to.be.revertedWith("Quorum was not met");
});
});
});
});

0 comments on commit ec6ce96

Please sign in to comment.