basic-0.js 468 B

1234567891011121314151617
  1. const anchor = require('@project-serum/anchor');
  2. describe('basic-0', () => {
  3. // Configure the client to use the local cluster.
  4. anchor.setProvider(anchor.Provider.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. });