diff --git a/js/src/instructions.ts b/js/src/instructions.ts index 29f740d..61b9d5b 100644 --- a/js/src/instructions.ts +++ b/js/src/instructions.ts @@ -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'; @@ -12,12 +16,9 @@ export function createInitInstruction( vestingProgramId: PublicKey, payerKey: PublicKey, vestingAccountKey: PublicKey, - seeds: Array + seeds: Array, ): 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 = [ diff --git a/js/src/main.ts b/js/src/main.ts index d103c1e..9744815 100644 --- a/js/src/main.ts +++ b/js/src/main.ts @@ -93,7 +93,7 @@ export async function create( programId, payer, vestingAccountKey, - [seedWord] + [seedWord], ), createAssociatedTokenAccountInstruction( payer, @@ -229,4 +229,4 @@ export async function getContractInfo( throw new Error('Vesting contract account is not initialized'); } return info!; -} \ No newline at end of file +} diff --git a/js/src/utils.ts b/js/src/utils.ts index c61f3bd..e0d9f25 100644 --- a/js/src/utils.ts +++ b/js/src/utils.ts @@ -6,7 +6,7 @@ import { TransactionInstruction, Transaction, Commitment, -} from "@solana/web3.js"; +} from '@solana/web3.js'; export const generateRandomSeed = () => { // Generate a random seed @@ -108,8 +108,8 @@ export const signAndSendInstructions = async ( feePayer: Keypair, txInstructions: Array, skipPreflight: boolean = false, - preflightCommitment: Commitment = "confirmed", - confirmCommitment: Commitment = "confirmed" + preflightCommitment: Commitment = 'confirmed', + confirmCommitment: Commitment = 'confirmed', ): Promise => { const tx = new Transaction();