From 858caf633741c90738f7c5be947805aa085eb261 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Tue, 27 Aug 2024 12:48:25 +0200 Subject: [PATCH] refactor: format --- src/__tests__/Anchor.test.ts | 8 ++++++-- src/anchor/program.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/__tests__/Anchor.test.ts b/src/__tests__/Anchor.test.ts index 2d5508c..2b66d91 100644 --- a/src/__tests__/Anchor.test.ts +++ b/src/__tests__/Anchor.test.ts @@ -204,7 +204,7 @@ test('Anchor', (done) => { }) pythOracle.methods - .setMaxLatency(1, [0,0,0]) + .setMaxLatency(1, [0, 0, 0]) .accounts({ fundingAccount: PublicKey.unique(), priceAccount: PublicKey.unique() }) .instruction() .then((instruction) => { @@ -216,7 +216,11 @@ test('Anchor', (done) => { pythOracle.methods .initPriceFeedIndex() - .accounts({ fundingAccount: PublicKey.unique(), priceAccount: PublicKey.unique(), permissionsAccount: PublicKey.unique() }) + .accounts({ + fundingAccount: PublicKey.unique(), + priceAccount: PublicKey.unique(), + permissionsAccount: PublicKey.unique(), + }) .instruction() .then((instruction) => { expect(instruction.data).toStrictEqual(Buffer.from([2, 0, 0, 0, 19, 0, 0, 0])) diff --git a/src/anchor/program.ts b/src/anchor/program.ts index 7e7dd38..d3c9a7c 100644 --- a/src/anchor/program.ts +++ b/src/anchor/program.ts @@ -688,7 +688,7 @@ export type PythOracle = { }, ] } - } + }, ] args: [] },