test.js 231 B

12345678910
  1. const anchor = require('.');
  2. console.log(anchor)
  3. function test() {
  4. const fs = require('fs');
  5. const idl = JSON.parse(fs.readFileSync('../examples/basic/idl.json', 'utf8'));
  6. const program = new anchor.Program(idl);
  7. }
  8. test();