Skip to content

Commit

Permalink
full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Jan 31, 2025
1 parent 2fd96ff commit 07e754b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/account/paymaster/Paymaster.behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ function shouldBehaveLikePaymaster({ postOp } = { postOp: false }) {
);
});

it('reverts when an unauthorized caller tries to unlock stake', async function () {
await expect(this.paymaster.connect(this.other).unlockStake()).to.be.reverted;
});

it('reverts when an unauthorized caller tries to withdraw stake', async function () {
await expect(this.paymaster.connect(this.other).withdrawStake(this.receiver)).to.be.reverted;
});
Expand Down

0 comments on commit 07e754b

Please sign in to comment.