-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
IDL does not reflect types in libraries #1058
Comments
Related to #454. |
@juliotpaez I have a very similar use case and didn't find anything either here or discord. Did you find any workaround/solution to this or the only way to go is to redefine the types in every program separately? Thank you. |
Hey @edmbn, no I couldn't find any way to make it work, just manually defining them. |
Thank you @juliotpaez, as I thought we have to add them everywhere. Hopefully we will have a fix soon. |
This is a known restriction of the IDL code but maybe if we're lucky kklas's new IDL code might fix this, I still have to check it out. |
Fixed in #2824. |
I'm developing a project that is composed of three contracts. These contracts have in common a couple of types that I moved to a Rust library. Everything works well but the types are ignored by the IDL generator, throwing a
IdlError: Type not found
error.Is there any way to include in the IDL types in another Rust library?
Thanks in advance.
The text was updated successfully, but these errors were encountered: