Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit c6c4116

Browse files
committed
npm run pretty
1 parent 06e6563 commit c6c4116

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

src/program/tic-tac-toe-dashboard.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export class TicTacToeDashboard {
8787
programId,
8888
);
8989
transaction.add({
90-
keys: [{pubkey: dashboardAccount.publicKey, isSigner: true, isDebitable: true}],
90+
keys: [
91+
{pubkey: dashboardAccount.publicKey, isSigner: true, isDebitable: true},
92+
],
9193
programId,
9294
data: ProgramCommand.initDashboard(),
9395
});
@@ -163,7 +165,11 @@ export class TicTacToeDashboard {
163165
let transaction = new Transaction({recentBlockhash});
164166
transaction.add(SystemProgram.assign(playerPublicKey, this.programId), {
165167
keys: [
166-
{pubkey: this._dashboardAccount.publicKey, isSigner: true, isDebitable: true},
168+
{
169+
pubkey: this._dashboardAccount.publicKey,
170+
isSigner: true,
171+
isDebitable: true,
172+
},
167173
{pubkey: playerPublicKey, isSigner: true, isDebitable: true},
168174
],
169175
programId: this.programId,
@@ -261,7 +267,11 @@ export class TicTacToeDashboard {
261267
);
262268
const transaction = new Transaction().add({
263269
keys: [
264-
{pubkey: playerAccount.publicKey, isSigner: true, isDebitable: true},
270+
{
271+
pubkey: playerAccount.publicKey,
272+
isSigner: true,
273+
isDebitable: true,
274+
},
265275
{pubkey: this.publicKey, isSigner: false, isDebitable: true},
266276
{pubkey: myGame.gamePublicKey, isSigner: false, isDebitable: true},
267277
],

src/program/tic-tac-toe.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,11 @@ export class TicTacToe {
226226
async keepAlive(): Promise<void> {
227227
const transaction = new Transaction().add({
228228
keys: [
229-
{pubkey: this.playerAccount.publicKey, isSigner: true, isDebitable: true},
229+
{
230+
pubkey: this.playerAccount.publicKey,
231+
isSigner: true,
232+
isDebitable: true,
233+
},
230234
{pubkey: this.dashboard, isSigner: false, isDebitable: true},
231235
{pubkey: this.gamePublicKey, isSigner: false, isDebitable: true},
232236
],
@@ -254,7 +258,11 @@ export class TicTacToe {
254258
async move(x: number, y: number): Promise<void> {
255259
const transaction = new Transaction().add({
256260
keys: [
257-
{pubkey: this.playerAccount.publicKey, isSigner: true, isDebitable: true},
261+
{
262+
pubkey: this.playerAccount.publicKey,
263+
isSigner: true,
264+
isDebitable: true,
265+
},
258266
{pubkey: this.dashboard, isSigner: false, isDebitable: true},
259267
{pubkey: this.gamePublicKey, isSigner: false, isDebitable: true},
260268
],

0 commit comments

Comments
 (0)