Skip to content

Instantly share code, notes, and snippets.

View buildgreatthings's full-sized avatar

Alex C. buildgreatthings

  • Palo Alto, CA
View GitHub Profile
@buildgreatthings
buildgreatthings / harkl.js
Last active June 6, 2022 09:30 — forked from h4rkl/harkl.js
Anchor Contract to Transfer Token from a Reserve to newly created wallet account
const anchor = require("@project-serum/anchor");
const serumCmn = require("@project-serum/common");
const { TOKEN_PROGRAM_ID } = require("@solana/spl-token");
describe("harkl-tests", () => {
// Configure the client to use the local cluster.
anchor.setProvider(anchor.Provider.env());
const program = anchor.workspace.Harkl;