group.ts 724 B

123456789101112131415161718192021
  1. import * as anchor from "@coral-xyz/anchor";
  2. import { Program } from "@coral-xyz/anchor";
  3. import { 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
  13. .testInitializeGroup()
  14. .accounts({})
  15. .rpc({ skipPreflight: true });
  16. console.log("Your transaction signature", transactionSignature);
  17. });
  18. });