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 c8b3cf3 commit 6bfed17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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!;
}
}

0 comments on commit 6bfed17

Please sign in to comment.