Skip to content

Commit

Permalink
style: fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Dec 31, 2024
1 parent 72024a9 commit 188dd74
Showing 1 changed file with 35 additions and 40 deletions.
75 changes: 35 additions & 40 deletions tests/bolt.low-level.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,23 +579,22 @@ describe("bolt", () => {
});

it("Apply System Velocity on Entity 1", async () => {
const instruction = await worldProgram.methods.apply2(SerializeArgs()).accounts({
const instruction = await worldProgram.methods
.apply2(SerializeArgs())
.accounts({
authority: provider.wallet.publicKey,
boltSystem: exampleSystemApplyVelocity,
boltComponent1: componentVelocityEntity1Pda,
componentProgram1: exampleComponentVelocity.programId,
boltComponent2: componentPositionEntity1Pda,
componentProgram2: exampleComponentPosition.programId,
world: worldPda
world: worldPda,
})
.remainingAccounts([])
.instruction();
const transaction = new anchor.web3.Transaction().add(instruction);
const signature = await provider.sendAndConfirm(transaction);
console.log(
"Apply System Velocity on Entity 1 signature: ",
signature,
);
console.log("Apply System Velocity on Entity 1 signature: ", signature);

const velocity = await exampleComponentVelocity.account.velocity.fetch(
componentVelocityEntity1Pda,
Expand All @@ -616,23 +615,25 @@ describe("bolt", () => {
});

it("Apply System Velocity on Entity 1, with Clock external account", async () => {
const instruction = await worldProgram.methods.apply2(SerializeArgs()).accounts({
const instruction = await worldProgram.methods
.apply2(SerializeArgs())
.accounts({
authority: provider.wallet.publicKey,
boltSystem: exampleSystemApplyVelocity,
boltComponent1: componentVelocityEntity1Pda,
componentProgram1: exampleComponentVelocity.programId,
boltComponent2: componentPositionEntity1Pda,
componentProgram2: exampleComponentPosition.programId,
world: worldPda
world: worldPda,
})
.remainingAccounts([
{
pubkey: new web3.PublicKey(
"SysvarC1ock11111111111111111111111111111111",
),
isWritable: false,
isSigner: false,
}
{
pubkey: new web3.PublicKey(
"SysvarC1ock11111111111111111111111111111111",
),
isWritable: false,
isSigner: false,
},
])
.instruction();
const transaction = new anchor.web3.Transaction().add(instruction);
Expand Down Expand Up @@ -676,16 +677,16 @@ describe("bolt", () => {
componentPositionEntity5Pda,
);

const instruction = await worldProgram.methods
.apply(SerializeArgs())
.accounts({
authority: provider.wallet.publicKey,
boltSystem: exampleSystemFly,
boltComponent: componentPositionEntity5Pda,
componentProgram: exampleComponentPosition.programId,
world: worldPda,
})
.instruction();
const instruction = await worldProgram.methods
.apply(SerializeArgs())
.accounts({
authority: provider.wallet.publicKey,
boltSystem: exampleSystemFly,
boltComponent: componentPositionEntity5Pda,
componentProgram: exampleComponentPosition.programId,
world: worldPda,
})
.instruction();
const transaction = new anchor.web3.Transaction().add(instruction);

let failed = false;
Expand Down Expand Up @@ -717,11 +718,9 @@ describe("bolt", () => {
})
.instruction();
const transaction = new anchor.web3.Transaction().add(instruction);
const signature = await provider.sendAndConfirm(
transaction,
[],
{ skipPreflight: true },
);
const signature = await provider.sendAndConfirm(transaction, [], {
skipPreflight: true,
});
console.log(`Whitelist 2 system approval signature: ${signature}`);

// Get World and check permissionless and systems
Expand All @@ -740,11 +739,9 @@ describe("bolt", () => {
})
.instruction();
const transaction = new anchor.web3.Transaction().add(instruction);
const signature = await provider.sendAndConfirm(
transaction,
[],
{ skipPreflight: true },
);
const signature = await provider.sendAndConfirm(transaction, [], {
skipPreflight: true,
});
console.log(`Whitelist 2 system approval signature: ${signature}`);

// Get World and check permissionless and systems
Expand Down Expand Up @@ -778,11 +775,9 @@ describe("bolt", () => {
})
.instruction();
const transaction = new anchor.web3.Transaction().add(instruction);
const signature = await provider.sendAndConfirm(
transaction,
[],
{ skipPreflight: true },
);
const signature = await provider.sendAndConfirm(transaction, [], {
skipPreflight: true,
});
console.log(`Remove System 1 signature: ${signature}`);

// Get World and check permissionless and systems
Expand Down

0 comments on commit 188dd74

Please sign in to comment.