Skip to content

Commit

Permalink
remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ihoroleksiienko committed Jul 3, 2024
1 parent ac8109d commit 1692b77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
10 changes: 0 additions & 10 deletions test/base/ERC20Freezable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,5 @@ describe("Contract 'ERC20Freezable'", async () => {
[-1, 1]
);
});

it("Tokens below the frozen balance cannot be transferred successfully", async () => {
const { token } = await setUpFixture(deployAndConfigureToken);
await proveTx(token.mint(user1.address, TOKEN_AMOUNT + 1));
await proveTx(connect(token, user1).approveFreezing());
await proveTx(connect(token, blocklister).freeze(user1.address, TOKEN_AMOUNT));
await expect(
connect(token, user1).transfer(user2.address, 2)
).to.be.revertedWithCustomError(token, REVERT_ERROR_TRANSFER_EXCEEDED_FROZEN_AMOUNT);
});
});
});
21 changes: 0 additions & 21 deletions test/base/ERC20Restrictable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,6 @@ describe("Contract 'ERC20Restrictable'", async () => {

await proveTx(token.mint(user1.address, 300));

await expect(
connect(token, user1).transfer(user2.address, 1)
).to.be.revertedWithCustomError(token, REVERT_ERROR_TRANSFER_EXCEEDED_RESTRICTED_AMOUNT);
await expect(
connect(token, user1).transfer(purposeAccount1.address, 101)
).to.be.revertedWithCustomError(token, REVERT_ERROR_TRANSFER_EXCEEDED_RESTRICTED_AMOUNT);
await expect(
connect(token, user1).transfer(purposeAccount2.address, 201)
).to.be.revertedWithCustomError(token, REVERT_ERROR_TRANSFER_EXCEEDED_RESTRICTED_AMOUNT);

await expect(
connect(token, user1).transfer(purposeAccount1.address, 25)
).to.changeTokenBalances(
Expand Down Expand Up @@ -319,10 +309,6 @@ describe("Contract 'ERC20Restrictable'", async () => {

await proveTx(token.mint(user1.address, 200));

await expect(
connect(token, user1).transfer(user2.address, 1)
).to.be.revertedWithCustomError(token, REVERT_ERROR_TRANSFER_EXCEEDED_RESTRICTED_AMOUNT);

await expect(
connect(token, user1).transfer(purposeAccount1.address, 50)
).to.changeTokenBalances(
Expand Down Expand Up @@ -362,13 +348,6 @@ describe("Contract 'ERC20Restrictable'", async () => {

await proveTx(token.mint(user1.address, 200));

await expect(
connect(token, user1).transfer(user2.address, 101)
).to.be.revertedWithCustomError(
token,
REVERT_ERROR_TRANSFER_EXCEEDED_RESTRICTED_AMOUNT
);

await expect(
connect(token, user1).transfer(user2.address, 25)
).to.changeTokenBalances(
Expand Down

0 comments on commit 1692b77

Please sign in to comment.