-
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 doesn't support PhantomData
#3241
Comments
IDL only supports a small subset of types: Lines 282 to 310 in 340e9c1
All these types are more or less language-agnostic, but The best we can do is to skip |
If skipping What do you suggest is the best approach here? |
I think skipping is the better option at least for now. |
If we define an account like so
it compiles fine if we compile with
anchor build --no-idl
. If we try to build the idl however, we get a bunch of errors (I'm guessing because the idl tries to includePhantomData
in the idl itself but it isn't serializable). I'm not sure if this is intentional or not, but if it isn't it would be nice to supportPhantomData
.The text was updated successfully, but these errors were encountered: