From 94bcccbc7c948e5af66cbecaa0c9a08898d5ec21 Mon Sep 17 00:00:00 2001 From: Jon C Date: Tue, 7 Apr 2026 18:43:38 +0200 Subject: [PATCH] js: Fix issues not caught during package upgrade #### Problem The clients/js package checks weren't required for merge, so dependabot merged some failing upgrades. #### Summary of changes Fix the issues reported by testing and linting. --- clients/js/src/actions.ts | 2 +- clients/js/test/_setup.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/js/src/actions.ts b/clients/js/src/actions.ts index 0e77168..5b0a31c 100644 --- a/clients/js/src/actions.ts +++ b/clients/js/src/actions.ts @@ -62,7 +62,7 @@ export async function createRecord({ lamports, space, programAddress: programId, - }); + }) as Instruction; const initializeIx = getInitializeInstruction( { diff --git a/clients/js/test/_setup.ts b/clients/js/test/_setup.ts index 4314a07..e58548d 100644 --- a/clients/js/test/_setup.ts +++ b/clients/js/test/_setup.ts @@ -1,11 +1,11 @@ import { - BaseTransactionMessage, Commitment, Instruction, Rpc, RpcSubscriptions, SolanaRpcApi, SolanaRpcSubscriptionsApi, + TransactionMessage, TransactionMessageWithBlockhashLifetime, TransactionMessageWithFeePayer, TransactionSigner, @@ -61,7 +61,7 @@ export const createDefaultTransaction = async (client: Client, feePayer: Transac export const signAndSendTransaction = async ( client: Client, - transactionMessage: BaseTransactionMessage & + transactionMessage: TransactionMessage & TransactionMessageWithFeePayer & TransactionMessageWithBlockhashLifetime, commitment: Commitment = 'confirmed',