12345678910111213141516 |
- import * as anchor from '@coral-xyz/anchor';
- import { Program } from '@coral-xyz/anchor';
- import { HelloSolana } from '../target/types/hello_solana';
- describe('hello-solana', () => {
- // Configure the client to use the local cluster.
- anchor.setProvider(anchor.AnchorProvider.env());
- const program = anchor.workspace.HelloSolana as Program<HelloSolana>;
- it('Is initialized!', async () => {
- // Add your test here.
- const tx = await program.methods.initialize().rpc();
- console.log('Your transaction signature', tx);
- });
- });
|