You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, everyone.
I am testing my solana contract with anchor.
My anchor version is 2.9.0.
I run "anchor build" and then idl file was generated in /target directory.
But I can see following error in this code.
import * as anchor from "@coral-xyz/anchor";
import { Program } from "@coral-xyz/anchor";
import { PublicKey, SystemProgram } from "@solana/web3.js";
import { expect } from "chai";
import { XXX } from "../target/types/xxx";
describe("initialize_program", () => {
// Configure the client to use the local cluster or devnet.
anchor.setProvider(anchor.AnchorProvider.env());
const program = anchor.workspace.XXX as Program<XXX>;
So has an error.
Type 'XXX' does not satisfy the constraint 'Idl'.
Type 'XXX' is missing the following properties from type 'Idl': address, metadatats(2344)
The text was updated successfully, but these errors were encountered:
Hi, everyone.
I am testing my solana contract with anchor.
My anchor version is 2.9.0.
I run "anchor build" and then idl file was generated in /target directory.
But I can see following error in this code.
So has an error.
The text was updated successfully, but these errors were encountered: