Skip to content

Commit

Permalink
formate code
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamSspirit committed Oct 24, 2024
1 parent 215378e commit 4b43a31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
4 changes: 1 addition & 3 deletions basics/hello-solana/poseidon/tests/bankrun.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as anchor from '@coral-xyz/anchor';
import { PublicKey } from '@solana/web3.js';
import { BankrunProvider } from 'anchor-bankrun';
import { startAnchor } from 'solana-bankrun';
import { HelloWorldProgram } from "../target/types/hello_world_program";
import { HelloWorldProgram } from '../target/types/hello_world_program';

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


2 changes: 1 addition & 1 deletion basics/hello-solana/poseidon/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ describe('hello-solana', () => {
//
await program.methods.helloSolana().accounts({}).rpc();
});
});
});
16 changes: 5 additions & 11 deletions basics/hello-solana/poseidon/ts-programs/src/helloWorldProgram.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import { Pubkey, Result } from "@solanaturbine/poseidon";
import { Pubkey, Result } from '@solanaturbine/poseidon';

export default class HelloWorldProgram {
static PROGRAM_ID = new Pubkey("6SoSn3xSXpLnJeys6p5ChaoUNdAv7rA4SCdxCanK2zjB");

helloSolana(): Result {
console.log("Hello world");
}
static PROGRAM_ID = new Pubkey('6SoSn3xSXpLnJeys6p5ChaoUNdAv7rA4SCdxCanK2zjB');

helloSolana(): Result {
console.log('Hello world');
}
}





0 comments on commit 4b43a31

Please sign in to comment.