token-minter.ts 544 B

12345678910111213141516
  1. import * as anchor from '@coral-xyz/anchor';
  2. import { Program } from '@coral-xyz/anchor';
  3. import { TokenMinter } from '../target/types/token_minter';
  4. describe('token-minter', () => {
  5. // Configure the client to use the local cluster.
  6. anchor.setProvider(anchor.AnchorProvider.env());
  7. const program = anchor.workspace.TokenMinter as Program<TokenMinter>;
  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. });