wormhole-icco/solana-anchor/tests/icco.ts

18 lines
514 B
TypeScript
Raw Normal View History

2022-05-23 08:32:05 -07:00
import * as anchor from "@project-serum/anchor";
import { Program } from "@project-serum/anchor";
2022-05-24 07:27:04 -07:00
import { Contributor } from "../target/types/contributor";
2022-05-23 08:32:05 -07:00
describe("icco", () => {
// Configure the client to use the local cluster.
anchor.setProvider(anchor.AnchorProvider.env());
2022-05-24 07:27:04 -07:00
const program = anchor.workspace.contributor as Program<Contributor>;
console.log(program.programId);
it("creates a contributor", async () => {
await program.methods.initialize().accounts({}).rpc();
2022-05-23 08:32:05 -07:00
});
2022-05-24 07:27:04 -07:00
});