Skip to content
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

fix/Fixed fuzz test generation with init-if-needed Anchor feature #131

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

Ikrk
Copy link
Contributor

@Ikrk Ikrk commented Feb 29, 2024

When using init-if-needed Anchor feature, the fuzz test generation failed, because we are using Anchor's parsing method to parse the context structs where also the Anchor constraints are parsed and it is verified, that the init-if-needed feature is activated properly. However Trdelnik did not activate this feature and the verification during parsing failed.

Also this PR resolves the warning: some crates are on edition 2021 which defaults to resolver = "2", but virtual workspaces default to resolver = "1"``. The resolver is now explicitly set to 1, because it merges the activated features for the whole workspace which is required for the init-if-needed feature to be propagated. Note that this warning may still be present due to Anchor settings, but this cannot be influenced by Trdelnik.

I have also deactivated some features that were only slowing the compilation but were not necessary for the project to compile.

@Ikrk Ikrk marked this pull request as ready for review February 29, 2024 10:08
@Ikrk Ikrk requested a review from lukacan February 29, 2024 10:08
@lukacan lukacan merged commit 81efeb3 into develop Feb 29, 2024
7 checks passed
@lukacan lukacan deleted the fix/init-if-needed-feature-flag branch February 29, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants