Skip to content

Commit

Permalink
fix error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley committed Mar 28, 2024
1 parent 39c48a3 commit 6f83928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/distributor/solana/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class SolanaDistributorClient {
const endVestingTs = args.endVestingTs.eqn(0) ? nowTs : args.endVestingTs;
const startVestingTs = args.startVestingTs.eqn(0) ? nowTs : args.startVestingTs;
if (endVestingTs.gt(startVestingTs) && endVestingTs.sub(startVestingTs).lt(args.unlockPeriod)) {
throw new Error("Unlock Period can not be less than total Vesting duration!");
throw new Error("The unlock period cannot be longer than the total vesting duration!");
}

ixs.push(newDistributor(args, accounts, this.programId));
Expand Down

0 comments on commit 6f83928

Please sign in to comment.