Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
makarychev committed Aug 13, 2024
1 parent 5aaf8de commit aa23685
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions tests/helpers/tokenlock_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,7 @@ export async function mintReleaseSchedule(
authorityWalletRolePubkey: PublicKey,
accessControlPubkey: PublicKey,
mintPubkey: PublicKey,
accessControlProgramId: PublicKey,
commitment: Commitment = "confirmed"
accessControlProgramId: PublicKey
): Promise<number | string> {
const timelockAccount = getTimelockAccount(
program.programId,
Expand Down Expand Up @@ -605,7 +604,7 @@ export async function mintReleaseSchedule(
...[modifyComputeUnitsInstruction, mintReleaseScheduleInstruction]
),
[signer],
{ commitment }
{ commitment: "confirmed" }
);

const account = await program.account.timelockData.fetch(timelockAccount);
Expand Down Expand Up @@ -858,7 +857,12 @@ export async function batchMintReleaseSchedule(
let result: string;

try {
await sendAndConfirmTransaction(program.provider.connection, trx, [signer]);
await sendAndConfirmTransaction(
program.provider.connection,
trx,
[signer],
{ commitment: "confirmed" }
);
result = "ok";
} catch (e) {
if (!e.error || !e.logs) {
Expand Down
2 changes: 1 addition & 1 deletion tests/tokenlock/mintReleaseSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import { getNowTs } from "../helpers/clock_helper";
import { fromDaysToSeconds } from "../helpers/datetime";

describe("TokenLockup mint release schedues", () => {
describe("TokenLockup mint release schedules", () => {
const testEnvironmentParams: TestEnvironmentParams = {
mint: {
decimals: 6,
Expand Down

0 comments on commit aa23685

Please sign in to comment.