Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wjthieme committed Aug 15, 2024
1 parent f99dc8d commit b770750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rust-sdk/client/kinobi.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createFromRoot } from "kinobi";
import { renderVisitor } from "@kinobi-so/renderers-rust";
import { rootNodeFromAnchor } from "@kinobi-so/nodes-from-anchor";
import idl from "../../target/idl/whirlpool.json" with { type: "json" };

import { readFileSync } from "fs";

const idl = JSON.parse(readFileSync("../../target/idl/whirlpool.json", "utf8"));
const node = rootNodeFromAnchor(idl);
const visitor = renderVisitor("./src/generated");
// IDL generated with anchor 0.29 does not have the address field so we have to add it manually
Expand Down
3 changes: 2 additions & 1 deletion ts-sdk/client/kinobi.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { createFromRoot } from "kinobi";
import { renderVisitor } from "@kinobi-so/renderers-js";
import { rootNodeFromAnchor } from "@kinobi-so/nodes-from-anchor";
import idl from "../../target/idl/whirlpool.json" with { type: "json" };
import { readFileSync } from "fs";

const idl = JSON.parse(readFileSync("../../target/idl/whirlpool.json", "utf8"));
const node = rootNodeFromAnchor(idl);
const visitor = renderVisitor("./src/generated");
// IDL generated with anchor 0.29 does not have the address field so we have to add it manually
Expand Down

0 comments on commit b770750

Please sign in to comment.