-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Idl(MissingOrInvalidProgramItems("account mod: struct not found"))
when running trident inti
#160
Comments
Hello, we will look into it, do you have the source code available in any repository? :) |
Yes, but it's closed source. Let me try creating a MRE and get back to you |
Alright, added an MRE here: https://github.com/cryptopapi997/trident-mre I just tried it again with a fresh git clone and trident init and it throws the same error. Small thing to note: This uses the latest commit from the anchor repo instead of the official 0.30.0 release. You can switch it to 0.30.0 if you'd like, it still throws the same error |
The problem is in the name of the context struct As a temporary workaround, if you rename |
Makes sense, thank you! I understand changing this is no simple undertaking as it would require parsing the names from Rust directly. However, I feel like if the error message specified the (incorrectly spelled) struct that caused this, it would've been a lot easier to guess what the problem is without bothering you guys. Opened a quick PR for this here: #164 |
Can be closed since #164 was merged |
Hey guys,
I have a project using Anchor 0.30.0 on which I'm trying to run
trident init
. An important specification here is I haveanchor-spl
as a dependency and I have it as version 0.30.0 as downgrading to 0.29.0 (like the docs recommend) would break everything in my program. Additionally, I tested a different 0.30.0 program with anchor-spl at 0.30.0 as well and there it worked fine.My issue is, when I try to run
trident init
on this project it keeps giving meError: Idl(MissingOrInvalidProgramItems("account mod: struct not found"))
. I tried checking the source code, but I'm not exactly sure what this error means exactly. I tried deleting most of my program so that all that gets generated as an idl is the below, but still the same issue. Any tips on how to fix this?The text was updated successfully, but these errors were encountered: