From 2fce30260f5ae5eedb61e86f44659fcdd26d9e4f Mon Sep 17 00:00:00 2001 From: Danilo Guanabara Date: Tue, 7 Jan 2025 20:12:36 -0300 Subject: [PATCH] :fire: Removing Apply in favor of ApplySystem --- clients/bolt-sdk/src/world/transactions.ts | 44 ---------------------- 1 file changed, 44 deletions(-) diff --git a/clients/bolt-sdk/src/world/transactions.ts b/clients/bolt-sdk/src/world/transactions.ts index a7c999c6..88d780b0 100644 --- a/clients/bolt-sdk/src/world/transactions.ts +++ b/clients/bolt-sdk/src/world/transactions.ts @@ -334,50 +334,6 @@ export async function InitializeComponent({ }; } -export async function Apply({ - authority, - boltSystem, - boltComponent, - componentProgram, - anchorRemainingAccounts, - world, - args, -}: { - authority: PublicKey; - boltSystem: PublicKey; - boltComponent: PublicKey; - componentProgram: PublicKey; - world: PublicKey; - anchorRemainingAccounts?: web3.AccountMeta[]; - args: Uint8Array | any; -}): Promise<{ - instruction: TransactionInstruction; - transaction: Transaction; -}> { - if (!(args instanceof Uint8Array)) { - args = SerializeArgs(args); - } - const instruction = createApplyInstruction( - { - authority, - boltSystem, - boltComponent, - componentProgram, - instructionSysvarAccount: SYSVAR_INSTRUCTIONS_PUBKEY, - anchorRemainingAccounts, - world, - }, - { - args, - }, - ); - const transaction = new Transaction().add(instruction); - return { - instruction, - transaction, - }; -} - interface ApplySystemInstruction { authority: PublicKey; systemId: PublicKey;