Skip to content

Commit

Permalink
nit-naming
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-vincent committed Jun 13, 2024
1 parent 0003b4a commit d18435b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions clients/bolt-sdk/src/world/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function InitializeComponent({

interface ApplySystemInstruction {
authority: PublicKey;
system: PublicKey;
systemId: PublicKey;
entities: ApplySystemEntity[];
extraAccounts?: web3.AccountMeta[];
args?: object;
Expand All @@ -151,7 +151,7 @@ function getBoltComponentProgramName(index: number, componentsCount: number) {
}
function createApplySystemInstruction({
authority,
system,
systemId,
entities,
extraAccounts,
args,
Expand All @@ -172,7 +172,7 @@ function createApplySystemInstruction({

const instructionArgs = {
authority,
boltSystem: system,
boltSystem: systemId,
instructionSysvarAccount: SYSVAR_INSTRUCTIONS_PUBKEY,
anchorRemainingAccounts: extraAccounts,
};
Expand Down Expand Up @@ -220,28 +220,28 @@ interface ApplySystemComponent {
/**
* Apply a system to a set of components
* @param authority
* @param system
* @param systemId
* @param entities
* @param extraAccounts
* @param args
* @constructor
*/
export async function ApplySystem({
authority,
system,
systemId,
entities,
extraAccounts,
args = {},
}: {
authority: PublicKey;
system: PublicKey;
systemId: PublicKey;
entities: ApplySystemEntity[];
extraAccounts?: web3.AccountMeta[];
args?: object;
}): Promise<{ transaction: Transaction }> {
const applySystemIx = createApplySystemInstruction({
authority,
system,
systemId,
entities,
extraAccounts,
args,
Expand Down

0 comments on commit d18435b

Please sign in to comment.