Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Aug 27, 2024
1 parent a0389e6 commit 858caf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/__tests__/Anchor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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]))
Expand Down
2 changes: 1 addition & 1 deletion src/anchor/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ export type PythOracle = {
},
]
}
}
},
]
args: []
},
Expand Down

0 comments on commit 858caf6

Please sign in to comment.