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',