Skip to content

Commit

Permalink
fix: lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Sep 27, 2024
1 parent 88a8361 commit fa62619
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
13 changes: 7 additions & 6 deletions js/src/instructions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { PublicKey, SYSVAR_RENT_PUBKEY, TransactionInstruction } from '@solana/web3.js';
import {
PublicKey,
SYSVAR_RENT_PUBKEY,
TransactionInstruction,
} from '@solana/web3.js';
import { Schedule } from './state';
import { Numberu32 } from './utils';

Expand All @@ -12,12 +16,9 @@ export function createInitInstruction(
vestingProgramId: PublicKey,
payerKey: PublicKey,
vestingAccountKey: PublicKey,
seeds: Array<Buffer | Uint8Array>
seeds: Array<Buffer | Uint8Array>,
): TransactionInstruction {
let buffers = [
Buffer.from(Int8Array.from([0]).buffer),
Buffer.concat(seeds),
];
let buffers = [Buffer.from(Int8Array.from([0]).buffer), Buffer.concat(seeds)];

const data = Buffer.concat(buffers);
const keys = [
Expand Down
4 changes: 2 additions & 2 deletions js/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function create(
programId,
payer,
vestingAccountKey,
[seedWord]
[seedWord],
),
createAssociatedTokenAccountInstruction(
payer,
Expand Down Expand Up @@ -229,4 +229,4 @@ export async function getContractInfo(
throw new Error('Vesting contract account is not initialized');
}
return info!;
}
}
6 changes: 3 additions & 3 deletions js/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
TransactionInstruction,
Transaction,
Commitment,
} from "@solana/web3.js";
} from '@solana/web3.js';

export const generateRandomSeed = () => {
// Generate a random seed
Expand Down Expand Up @@ -108,8 +108,8 @@ export const signAndSendInstructions = async (
feePayer: Keypair,
txInstructions: Array<TransactionInstruction>,
skipPreflight: boolean = false,
preflightCommitment: Commitment = "confirmed",
confirmCommitment: Commitment = "confirmed"
preflightCommitment: Commitment = 'confirmed',
confirmCommitment: Commitment = 'confirmed',
): Promise<string> => {
const tx = new Transaction();

Expand Down

0 comments on commit fa62619

Please sign in to comment.