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
Users get an error when trying to compile the example on the accounts struct documentation page (docs/src/pages/docs/the-accounts-struct.md) shown below:
The documentation mentions that anchor-spl must be added to the dependencies section of cargo.toml but fails to mention that you also need to add "anchor-spl/idl-build" to the idl-build list in the Cargo.toml.
This issue was identified and answered on stack overflow but it would be best if it was just in the documentation to begin with.
The text was updated successfully, but these errors were encountered:
psalm842
added a commit
to psalm842/anchor
that referenced
this issue
Jan 8, 2025
Fixes the error generated by the example in the accounts struct section of the documentation by informing the user they also need to add "anchor-spl/idl-build" to the idl-build list in the features section of cargo.toml
Issue
Users get an error when trying to compile the example on the accounts struct documentation page (docs/src/pages/docs/the-accounts-struct.md) shown below:
Generated Error
Resolution
The documentation mentions that anchor-spl must be added to the dependencies section of cargo.toml but fails to mention that you also need to add "anchor-spl/idl-build" to the idl-build list in the Cargo.toml.
This issue was identified and answered on stack overflow but it would be best if it was just in the documentation to begin with.
The text was updated successfully, but these errors were encountered: