Skip to content

Instantly share code, notes, and snippets.

View awcchungster's full-sized avatar

Alex C. awcchungster

View GitHub Profile
@awcchungster
awcchungster / 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;