diff --git a/clients/js/src/generated/instructions/addMemo.ts b/clients/js/src/generated/instructions/addMemo.ts index 309a47c..58c7d22 100644 --- a/clients/js/src/generated/instructions/addMemo.ts +++ b/clients/js/src/generated/instructions/addMemo.ts @@ -117,20 +117,12 @@ export function getAddMemoInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - - return Object.freeze({ - ...getAddMemoInstructionRaw( - args as AddMemoInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAddMemoInstructionRaw( + args as AddMemoInstructionDataArgs, + programAddress + ); + + return instruction; } export function getAddMemoInstructionRaw< diff --git a/clients/js/src/generated/instructions/advanceNonceAccount.ts b/clients/js/src/generated/instructions/advanceNonceAccount.ts index f76a221..29d2d1a 100644 --- a/clients/js/src/generated/instructions/advanceNonceAccount.ts +++ b/clients/js/src/generated/instructions/advanceNonceAccount.ts @@ -274,11 +274,6 @@ export function getAdvanceNonceAccountInstruction< accounts.recentBlockhashesSysvar.value = 'SysvarRecentB1ockHashes11111111111111111111' as Address<'SysvarRecentB1ockHashes11111111111111111111'>; } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( @@ -287,14 +282,12 @@ export function getAdvanceNonceAccountInstruction< programAddress ); - return Object.freeze({ - ...getAdvanceNonceAccountInstructionRaw( - accountMetas as Record, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAdvanceNonceAccountInstructionRaw( + accountMetas as Record, + programAddress + ); + + return instruction; } export function getAdvanceNonceAccountInstructionRaw< diff --git a/clients/js/src/generated/instructions/allocate.ts b/clients/js/src/generated/instructions/allocate.ts index 4808ce3..9039270 100644 --- a/clients/js/src/generated/instructions/allocate.ts +++ b/clients/js/src/generated/instructions/allocate.ts @@ -179,12 +179,6 @@ export function getAllocateInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -192,15 +186,13 @@ export function getAllocateInstruction< programAddress ); - return Object.freeze({ - ...getAllocateInstructionRaw( - accountMetas as Record, - args as AllocateInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAllocateInstructionRaw( + accountMetas as Record, + args as AllocateInstructionDataArgs, + programAddress + ); + + return instruction; } export function getAllocateInstructionRaw< diff --git a/clients/js/src/generated/instructions/allocateWithSeed.ts b/clients/js/src/generated/instructions/allocateWithSeed.ts index 669c98c..9987452 100644 --- a/clients/js/src/generated/instructions/allocateWithSeed.ts +++ b/clients/js/src/generated/instructions/allocateWithSeed.ts @@ -262,12 +262,6 @@ export function getAllocateWithSeedInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -275,15 +269,13 @@ export function getAllocateWithSeedInstruction< programAddress ); - return Object.freeze({ - ...getAllocateWithSeedInstructionRaw( - accountMetas as Record, - args as AllocateWithSeedInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAllocateWithSeedInstructionRaw( + accountMetas as Record, + args as AllocateWithSeedInstructionDataArgs, + programAddress + ); + + return instruction; } export function getAllocateWithSeedInstructionRaw< diff --git a/clients/js/src/generated/instructions/assign.ts b/clients/js/src/generated/instructions/assign.ts index aee326d..a8ee2ba 100644 --- a/clients/js/src/generated/instructions/assign.ts +++ b/clients/js/src/generated/instructions/assign.ts @@ -179,12 +179,6 @@ export function getAssignInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -192,15 +186,13 @@ export function getAssignInstruction< programAddress ); - return Object.freeze({ - ...getAssignInstructionRaw( - accountMetas as Record, - args as AssignInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAssignInstructionRaw( + accountMetas as Record, + args as AssignInstructionDataArgs, + programAddress + ); + + return instruction; } export function getAssignInstructionRaw< diff --git a/clients/js/src/generated/instructions/assignWithSeed.ts b/clients/js/src/generated/instructions/assignWithSeed.ts index 2520830..e4de722 100644 --- a/clients/js/src/generated/instructions/assignWithSeed.ts +++ b/clients/js/src/generated/instructions/assignWithSeed.ts @@ -236,12 +236,6 @@ export function getAssignWithSeedInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -249,15 +243,13 @@ export function getAssignWithSeedInstruction< programAddress ); - return Object.freeze({ - ...getAssignWithSeedInstructionRaw( - accountMetas as Record, - args as AssignWithSeedInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAssignWithSeedInstructionRaw( + accountMetas as Record, + args as AssignWithSeedInstructionDataArgs, + programAddress + ); + + return instruction; } export function getAssignWithSeedInstructionRaw< diff --git a/clients/js/src/generated/instructions/authorizeNonceAccount.ts b/clients/js/src/generated/instructions/authorizeNonceAccount.ts index 76cd738..aa3dbc7 100644 --- a/clients/js/src/generated/instructions/authorizeNonceAccount.ts +++ b/clients/js/src/generated/instructions/authorizeNonceAccount.ts @@ -246,11 +246,6 @@ export function getAuthorizeNonceAccountInstruction< if (!args.nonceAccountArg) { args.nonceAccountArg = expectAddress(accounts.nonceAccount.value); } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( @@ -259,15 +254,13 @@ export function getAuthorizeNonceAccountInstruction< programAddress ); - return Object.freeze({ - ...getAuthorizeNonceAccountInstructionRaw( - accountMetas as Record, - args as AuthorizeNonceAccountInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getAuthorizeNonceAccountInstructionRaw( + accountMetas as Record, + args as AuthorizeNonceAccountInstructionDataArgs, + programAddress + ); + + return instruction; } export function getAuthorizeNonceAccountInstructionRaw< diff --git a/clients/js/src/generated/instructions/closeLookupTable.ts b/clients/js/src/generated/instructions/closeLookupTable.ts index 7c0c9d4..a2481ed 100644 --- a/clients/js/src/generated/instructions/closeLookupTable.ts +++ b/clients/js/src/generated/instructions/closeLookupTable.ts @@ -261,12 +261,6 @@ export function getCloseLookupTableInstruction< recipient: { value: input.recipient ?? null, isWritable: true }, }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -274,14 +268,12 @@ export function getCloseLookupTableInstruction< programAddress ); - return Object.freeze({ - ...getCloseLookupTableInstructionRaw( - accountMetas as Record, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getCloseLookupTableInstructionRaw( + accountMetas as Record, + programAddress + ); + + return instruction; } export function getCloseLookupTableInstructionRaw< diff --git a/clients/js/src/generated/instructions/createAccount.ts b/clients/js/src/generated/instructions/createAccount.ts index 4223ea4..63cfe03 100644 --- a/clients/js/src/generated/instructions/createAccount.ts +++ b/clients/js/src/generated/instructions/createAccount.ts @@ -241,9 +241,6 @@ export function getCreateAccountInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - // Bytes created on chain. const bytesCreatedOnChain = Number(args.space) + BASE_ACCOUNT_SIZE; @@ -254,15 +251,13 @@ export function getCreateAccountInstruction< programAddress ); - return Object.freeze({ - ...getCreateAccountInstructionRaw( - accountMetas as Record, - args as CreateAccountInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getCreateAccountInstructionRaw( + accountMetas as Record, + args as CreateAccountInstructionDataArgs, + programAddress + ); + + return Object.freeze({ ...instruction, bytesCreatedOnChain }); } export function getCreateAccountInstructionRaw< diff --git a/clients/js/src/generated/instructions/createAccountWithSeed.ts b/clients/js/src/generated/instructions/createAccountWithSeed.ts index 24469da..4ee2ce8 100644 --- a/clients/js/src/generated/instructions/createAccountWithSeed.ts +++ b/clients/js/src/generated/instructions/createAccountWithSeed.ts @@ -316,12 +316,6 @@ export function getCreateAccountWithSeedInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -329,15 +323,13 @@ export function getCreateAccountWithSeedInstruction< programAddress ); - return Object.freeze({ - ...getCreateAccountWithSeedInstructionRaw( - accountMetas as Record, - args as CreateAccountWithSeedInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getCreateAccountWithSeedInstructionRaw( + accountMetas as Record, + args as CreateAccountWithSeedInstructionDataArgs, + programAddress + ); + + return instruction; } export function getCreateAccountWithSeedInstructionRaw< diff --git a/clients/js/src/generated/instructions/createLookupTable.ts b/clients/js/src/generated/instructions/createLookupTable.ts index 6570c7e..a90bf0f 100644 --- a/clients/js/src/generated/instructions/createLookupTable.ts +++ b/clients/js/src/generated/instructions/createLookupTable.ts @@ -359,8 +359,6 @@ export async function getCreateLookupTableInstructionAsync< if (!args.bump) { args.bump = expectProgramDerivedAddress(accounts.address.value)[1]; } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; // Bytes created on chain. const bytesCreatedOnChain = 56 + BASE_ACCOUNT_SIZE; @@ -372,15 +370,13 @@ export async function getCreateLookupTableInstructionAsync< programAddress ); - return Object.freeze({ - ...getCreateLookupTableInstructionRaw( - accountMetas as Record, - args as CreateLookupTableInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getCreateLookupTableInstructionRaw( + accountMetas as Record, + args as CreateLookupTableInstructionDataArgs, + programAddress + ); + + return Object.freeze({ ...instruction, bytesCreatedOnChain }); } export type CreateLookupTableInput< @@ -573,8 +569,6 @@ export function getCreateLookupTableInstruction< if (!args.bump) { args.bump = expectProgramDerivedAddress(accounts.address.value)[1]; } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; // Bytes created on chain. const bytesCreatedOnChain = 56 + BASE_ACCOUNT_SIZE; @@ -586,15 +580,13 @@ export function getCreateLookupTableInstruction< programAddress ); - return Object.freeze({ - ...getCreateLookupTableInstructionRaw( - accountMetas as Record, - args as CreateLookupTableInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getCreateLookupTableInstructionRaw( + accountMetas as Record, + args as CreateLookupTableInstructionDataArgs, + programAddress + ); + + return Object.freeze({ ...instruction, bytesCreatedOnChain }); } export function getCreateLookupTableInstructionRaw< diff --git a/clients/js/src/generated/instructions/deactivateLookupTable.ts b/clients/js/src/generated/instructions/deactivateLookupTable.ts index ca34a76..124ec48 100644 --- a/clients/js/src/generated/instructions/deactivateLookupTable.ts +++ b/clients/js/src/generated/instructions/deactivateLookupTable.ts @@ -216,12 +216,6 @@ export function getDeactivateLookupTableInstruction< authority: { value: input.authority ?? null, isWritable: false }, }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -229,14 +223,12 @@ export function getDeactivateLookupTableInstruction< programAddress ); - return Object.freeze({ - ...getDeactivateLookupTableInstructionRaw( - accountMetas as Record, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getDeactivateLookupTableInstructionRaw( + accountMetas as Record, + programAddress + ); + + return instruction; } export function getDeactivateLookupTableInstructionRaw< diff --git a/clients/js/src/generated/instructions/extendLookupTable.ts b/clients/js/src/generated/instructions/extendLookupTable.ts index f24b9d3..5277c5c 100644 --- a/clients/js/src/generated/instructions/extendLookupTable.ts +++ b/clients/js/src/generated/instructions/extendLookupTable.ts @@ -341,8 +341,6 @@ export function getExtendLookupTableInstruction< ); accounts.systemProgram.isWritable = false; } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; // Bytes created on chain. const bytesCreatedOnChain = resolveExtendLookupTableBytes(resolverScope); @@ -354,15 +352,13 @@ export function getExtendLookupTableInstruction< programAddress ); - return Object.freeze({ - ...getExtendLookupTableInstructionRaw( - accountMetas as Record, - args as ExtendLookupTableInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getExtendLookupTableInstructionRaw( + accountMetas as Record, + args as ExtendLookupTableInstructionDataArgs, + programAddress + ); + + return Object.freeze({ ...instruction, bytesCreatedOnChain }); } export function getExtendLookupTableInstructionRaw< diff --git a/clients/js/src/generated/instructions/freezeLookupTable.ts b/clients/js/src/generated/instructions/freezeLookupTable.ts index 3b38bf9..2bea452 100644 --- a/clients/js/src/generated/instructions/freezeLookupTable.ts +++ b/clients/js/src/generated/instructions/freezeLookupTable.ts @@ -202,12 +202,6 @@ export function getFreezeLookupTableInstruction< authority: { value: input.authority ?? null, isWritable: false }, }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -215,14 +209,12 @@ export function getFreezeLookupTableInstruction< programAddress ); - return Object.freeze({ - ...getFreezeLookupTableInstructionRaw( - accountMetas as Record, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getFreezeLookupTableInstructionRaw( + accountMetas as Record, + programAddress + ); + + return instruction; } export function getFreezeLookupTableInstructionRaw< diff --git a/clients/js/src/generated/instructions/initializeNonceAccount.ts b/clients/js/src/generated/instructions/initializeNonceAccount.ts index 64b3832..8beaf38 100644 --- a/clients/js/src/generated/instructions/initializeNonceAccount.ts +++ b/clients/js/src/generated/instructions/initializeNonceAccount.ts @@ -299,11 +299,6 @@ export function getInitializeNonceAccountInstruction< if (!args.nonceAccountArg) { args.nonceAccountArg = expectAddress(accounts.nonceAccount.value); } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( @@ -312,15 +307,13 @@ export function getInitializeNonceAccountInstruction< programAddress ); - return Object.freeze({ - ...getInitializeNonceAccountInstructionRaw( - accountMetas as Record, - args as InitializeNonceAccountInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getInitializeNonceAccountInstructionRaw( + accountMetas as Record, + args as InitializeNonceAccountInstructionDataArgs, + programAddress + ); + + return instruction; } export function getInitializeNonceAccountInstructionRaw< diff --git a/clients/js/src/generated/instructions/requestHeapFrame.ts b/clients/js/src/generated/instructions/requestHeapFrame.ts index 64153b0..66e669a 100644 --- a/clients/js/src/generated/instructions/requestHeapFrame.ts +++ b/clients/js/src/generated/instructions/requestHeapFrame.ts @@ -155,20 +155,12 @@ export function getRequestHeapFrameInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - - return Object.freeze({ - ...getRequestHeapFrameInstructionRaw( - args as RequestHeapFrameInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getRequestHeapFrameInstructionRaw( + args as RequestHeapFrameInstructionDataArgs, + programAddress + ); + + return instruction; } export function getRequestHeapFrameInstructionRaw< diff --git a/clients/js/src/generated/instructions/requestUnits.ts b/clients/js/src/generated/instructions/requestUnits.ts index 1090890..d013e0e 100644 --- a/clients/js/src/generated/instructions/requestUnits.ts +++ b/clients/js/src/generated/instructions/requestUnits.ts @@ -156,20 +156,12 @@ export function getRequestUnitsInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - - return Object.freeze({ - ...getRequestUnitsInstructionRaw( - args as RequestUnitsInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getRequestUnitsInstructionRaw( + args as RequestUnitsInstructionDataArgs, + programAddress + ); + + return instruction; } export function getRequestUnitsInstructionRaw< diff --git a/clients/js/src/generated/instructions/setComputeUnitLimit.ts b/clients/js/src/generated/instructions/setComputeUnitLimit.ts index 0e8a40e..d96c356 100644 --- a/clients/js/src/generated/instructions/setComputeUnitLimit.ts +++ b/clients/js/src/generated/instructions/setComputeUnitLimit.ts @@ -146,20 +146,12 @@ export function getSetComputeUnitLimitInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - - return Object.freeze({ - ...getSetComputeUnitLimitInstructionRaw( - args as SetComputeUnitLimitInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getSetComputeUnitLimitInstructionRaw( + args as SetComputeUnitLimitInstructionDataArgs, + programAddress + ); + + return instruction; } export function getSetComputeUnitLimitInstructionRaw< diff --git a/clients/js/src/generated/instructions/setComputeUnitPrice.ts b/clients/js/src/generated/instructions/setComputeUnitPrice.ts index 16c9c94..4f27e0a 100644 --- a/clients/js/src/generated/instructions/setComputeUnitPrice.ts +++ b/clients/js/src/generated/instructions/setComputeUnitPrice.ts @@ -146,20 +146,12 @@ export function getSetComputeUnitPriceInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - - return Object.freeze({ - ...getSetComputeUnitPriceInstructionRaw( - args as SetComputeUnitPriceInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getSetComputeUnitPriceInstructionRaw( + args as SetComputeUnitPriceInstructionDataArgs, + programAddress + ); + + return instruction; } export function getSetComputeUnitPriceInstructionRaw< diff --git a/clients/js/src/generated/instructions/setLoadedAccountsDataSizeLimit.ts b/clients/js/src/generated/instructions/setLoadedAccountsDataSizeLimit.ts index 96d91cd..fbf9de4 100644 --- a/clients/js/src/generated/instructions/setLoadedAccountsDataSizeLimit.ts +++ b/clients/js/src/generated/instructions/setLoadedAccountsDataSizeLimit.ts @@ -144,20 +144,12 @@ export function getSetLoadedAccountsDataSizeLimitInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; + const instruction = getSetLoadedAccountsDataSizeLimitInstructionRaw( + args as SetLoadedAccountsDataSizeLimitInstructionDataArgs, + programAddress + ); - return Object.freeze({ - ...getSetLoadedAccountsDataSizeLimitInstructionRaw( - args as SetLoadedAccountsDataSizeLimitInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + return instruction; } export function getSetLoadedAccountsDataSizeLimitInstructionRaw< diff --git a/clients/js/src/generated/instructions/transferSol.ts b/clients/js/src/generated/instructions/transferSol.ts index 210a191..b97020f 100644 --- a/clients/js/src/generated/instructions/transferSol.ts +++ b/clients/js/src/generated/instructions/transferSol.ts @@ -217,12 +217,6 @@ export function getTransferSolInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -230,15 +224,13 @@ export function getTransferSolInstruction< programAddress ); - return Object.freeze({ - ...getTransferSolInstructionRaw( - accountMetas as Record, - args as TransferSolInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getTransferSolInstructionRaw( + accountMetas as Record, + args as TransferSolInstructionDataArgs, + programAddress + ); + + return instruction; } export function getTransferSolInstructionRaw< diff --git a/clients/js/src/generated/instructions/transferSolWithSeed.ts b/clients/js/src/generated/instructions/transferSolWithSeed.ts index 8d36857..bf8cb3e 100644 --- a/clients/js/src/generated/instructions/transferSolWithSeed.ts +++ b/clients/js/src/generated/instructions/transferSolWithSeed.ts @@ -300,12 +300,6 @@ export function getTransferSolWithSeedInstruction< // Original args. const args = { ...input }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -313,15 +307,13 @@ export function getTransferSolWithSeedInstruction< programAddress ); - return Object.freeze({ - ...getTransferSolWithSeedInstructionRaw( - accountMetas as Record, - args as TransferSolWithSeedInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getTransferSolWithSeedInstructionRaw( + accountMetas as Record, + args as TransferSolWithSeedInstructionDataArgs, + programAddress + ); + + return instruction; } export function getTransferSolWithSeedInstructionRaw< diff --git a/clients/js/src/generated/instructions/upgradeNonceAccount.ts b/clients/js/src/generated/instructions/upgradeNonceAccount.ts index 8746288..316bca1 100644 --- a/clients/js/src/generated/instructions/upgradeNonceAccount.ts +++ b/clients/js/src/generated/instructions/upgradeNonceAccount.ts @@ -167,12 +167,6 @@ export function getUpgradeNonceAccountInstruction< nonceAccount: { value: input.nonceAccount ?? null, isWritable: true }, }; - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; - // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( accounts, @@ -180,14 +174,12 @@ export function getUpgradeNonceAccountInstruction< programAddress ); - return Object.freeze({ - ...getUpgradeNonceAccountInstructionRaw( - accountMetas as Record, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getUpgradeNonceAccountInstructionRaw( + accountMetas as Record, + programAddress + ); + + return instruction; } export function getUpgradeNonceAccountInstructionRaw< diff --git a/clients/js/src/generated/instructions/withdrawNonceAccount.ts b/clients/js/src/generated/instructions/withdrawNonceAccount.ts index 539c48c..1645aff 100644 --- a/clients/js/src/generated/instructions/withdrawNonceAccount.ts +++ b/clients/js/src/generated/instructions/withdrawNonceAccount.ts @@ -365,11 +365,6 @@ export function getWithdrawNonceAccountInstruction< accounts.rentSysvar.value = 'SysvarRent111111111111111111111111111111111' as Address<'SysvarRent111111111111111111111111111111111'>; } - // Remaining accounts. - const remainingAccounts: IAccountMeta[] = []; - - // Bytes created on chain. - const bytesCreatedOnChain = 0; // Get account metas and signers. const accountMetas = getAccountMetasWithSigners( @@ -378,15 +373,13 @@ export function getWithdrawNonceAccountInstruction< programAddress ); - return Object.freeze({ - ...getWithdrawNonceAccountInstructionRaw( - accountMetas as Record, - args as WithdrawNonceAccountInstructionDataArgs, - programAddress, - remainingAccounts - ), - bytesCreatedOnChain, - }); + const instruction = getWithdrawNonceAccountInstructionRaw( + accountMetas as Record, + args as WithdrawNonceAccountInstructionDataArgs, + programAddress + ); + + return instruction; } export function getWithdrawNonceAccountInstructionRaw<