Closed jerac-breederdao closed 5 months ago
You need to run anchor build
instead of cargo build
to generate the IDL. Also, anchor test
builds the programs by default too, so if you still get this error, it might be because of a mismatch between your program name in various places e.g. Anchor.toml
and Cargo.toml
.
To add to the previous post, the latest version (v0.30.0) includes various fixes to the IDL generation workflow, making it very likely that the problem you're having is fixed.
I tried running
anchor test
and i got the errorError: IDL doesn't exist
I already rancargo clean
thencargo build
but the error still exist.