Skip to content

Commit

Permalink
🔥 Removing Apply in favor of ApplySystem
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Jan 7, 2025
1 parent 548f592 commit 2fce302
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions clients/bolt-sdk/src/world/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2fce302

Please sign in to comment.