Skip to content

Commit

Permalink
uncomment test code
Browse files Browse the repository at this point in the history
  • Loading branch information
makarychev committed Aug 2, 2024
1 parent 46da4cd commit 75ef5f5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/access_control/force-transfer-between.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,23 @@ describe("Access Control force transfer between", () => {
);
});

// it("fails to mint more than maxTotalSupply", async () => {
// const { maxTotalSupply: maxTotalSupply } = await testEnvironment.accessControlHelper.accessControlData();
it("fails to mint more than maxTotalSupply", async () => {
const { maxTotalSupply: maxTotalSupply } = await testEnvironment.accessControlHelper.accessControlData();

// const amount = maxTotalSupply.sub(new anchor.BN(testEnvironmentParams.initialSupply)).addn(1);
// try {
// await testEnvironment.accessControlHelper.mintSecurities(
// amount,
// recipient.publicKey,
// recipientTokenAccount,
// testEnvironment.reserveAdmin,
// );
// assert.fail("Expected an error");
// } catch ({ error }) {
// assert.equal(error.errorCode.code, "MintExceedsMaxTotalSupply");
// assert.equal(error.errorMessage, "Cannot mint more than max total supply");
// }
// });
const amount = maxTotalSupply.sub(new anchor.BN(testEnvironmentParams.initialSupply)).addn(1);
try {
await testEnvironment.accessControlHelper.mintSecurities(
amount,
recipient.publicKey,
recipientTokenAccount,
testEnvironment.reserveAdmin,
);
assert.fail("Expected an error");
} catch ({ error }) {
assert.equal(error.errorCode.code, "MintExceedsMaxTotalSupply");
assert.equal(error.errorMessage, "Cannot mint more than max total supply");
}
});

it("fails when transfer hook data is not initialized", async () => {
const amount = 1_000_000;
Expand Down

0 comments on commit 75ef5f5

Please sign in to comment.