group.ts 713 B

123456789101112131415161718
  1. import * as anchor from '@coral-xyz/anchor';
  2. import type { Program } from '@coral-xyz/anchor';
  3. import type { Group } from '../target/types/group';
  4. describe('group', () => {
  5. // Configure the client to use the local cluster.
  6. const provider = anchor.AnchorProvider.env();
  7. const connection = provider.connection;
  8. const wallet = provider.wallet as anchor.Wallet;
  9. anchor.setProvider(provider);
  10. const program = anchor.workspace.Group as Program<Group>;
  11. it('Create Mint with Group Pointer', async () => {
  12. const transactionSignature = await program.methods.testInitializeGroup().accounts({}).rpc({ skipPreflight: true });
  13. console.log('Your transaction signature', transactionSignature);
  14. });
  15. });