Skip to content

Commit

Permalink
fix: maliciousSigner account
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed Sep 25, 2024
1 parent eaff569 commit 98d12cd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/DLCManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,10 @@ describe('DLCManager', () => {
const receipt = await tx.wait();
const _uuid = await receipt.events[0].args.uuid;

// Hardhat account #9
let maliciousAttestor = new ethers.Wallet(
ethers.utils.arrayify(
'0x21001225a646a5829c452fe7597c5ea8b1dbe5978bb9d400f9eff2f167c100ef'
'0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6'
)
);

Expand All @@ -483,12 +484,6 @@ describe('DLCManager', () => {
console.log(
`Malicious signer address: ${maliciousSigner.address}\n`
);
// simulate that the malicious signer has native tokens
await attestor1.sendTransaction({
to: maliciousSigner.address,
value: ethers.utils.parseEther('1.0'),
});

// Change threshold and add the new signer
await dlcManager.connect(deployer).setThreshold(4);
await setSigners(dlcManager, [maliciousAttestor]);
Expand Down

0 comments on commit 98d12cd

Please sign in to comment.