Skip to content

Commit 4b43a31

Browse files
committed
formate code
1 parent 215378e commit 4b43a31

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

basics/hello-solana/poseidon/tests/bankrun.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as anchor from '@coral-xyz/anchor';
33
import { PublicKey } from '@solana/web3.js';
44
import { BankrunProvider } from 'anchor-bankrun';
55
import { startAnchor } from 'solana-bankrun';
6-
import { HelloWorldProgram } from "../target/types/hello_world_program";
6+
import { HelloWorldProgram } from '../target/types/hello_world_program';
77

88
const IDL = require('../target/idl/hello_world_program.json');
99
const PROGRAM_ID = new PublicKey(IDL.address);
@@ -21,5 +21,3 @@ describe('hello-solana', async () => {
2121
await program.methods.helloSolana().accounts({}).rpc();
2222
});
2323
});
24-
25-

basics/hello-solana/poseidon/tests/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ describe('hello-solana', () => {
1414
//
1515
await program.methods.helloSolana().accounts({}).rpc();
1616
});
17-
});
17+
});
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
import { Pubkey, Result } from "@solanaturbine/poseidon";
1+
import { Pubkey, Result } from '@solanaturbine/poseidon';
22

33
export default class HelloWorldProgram {
4-
static PROGRAM_ID = new Pubkey("6SoSn3xSXpLnJeys6p5ChaoUNdAv7rA4SCdxCanK2zjB");
5-
6-
helloSolana(): Result {
7-
console.log("Hello world");
8-
}
4+
static PROGRAM_ID = new Pubkey('6SoSn3xSXpLnJeys6p5ChaoUNdAv7rA4SCdxCanK2zjB');
95

6+
helloSolana(): Result {
7+
console.log('Hello world');
8+
}
109
}
11-
12-
13-
14-
15-

0 commit comments

Comments
 (0)