basic-0.js 474 B

12345678910111213141516
  1. const anchor = require("@project-serum/anchor");
  2. describe("basic-0", () => {
  3. // Configure the client to use the local cluster.
  4. anchor.setProvider(anchor.AnchorProvider.local());
  5. it("Uses the workspace to invoke the initialize instruction", async () => {
  6. // #region code
  7. // Read the deployed program from the workspace.
  8. const program = anchor.workspace.Basic0;
  9. // Execute the RPC.
  10. await program.rpc.initialize();
  11. // #endregion code
  12. });
  13. });