anchor.ts 566 B

12345678910111213141516
  1. import * as anchor from "@project-serum/anchor";
  2. import { Program } from "@project-serum/anchor";
  3. import { CreateSystemAccount } from "../target/types/create_system_account";
  4. describe("anchor", () => {
  5. // Configure the client to use the local cluster.
  6. anchor.setProvider(anchor.AnchorProvider.env());
  7. const program = anchor.workspace.Anchor as Program<CreateSystemAccount>;
  8. it("Is initialized!", async () => {
  9. // Add your test here.
  10. const tx = await program.methods.initialize().rpc();
  11. console.log("Your transaction signature", tx);
  12. });
  13. });