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

Latest anchor version is incompatible with solana 1.16.x #2949

Closed
ellttBen opened this issue May 7, 2024 · 1 comment · Fixed by #2975
Closed

Latest anchor version is incompatible with solana 1.16.x #2949

ellttBen opened this issue May 7, 2024 · 1 comment · Fixed by #2975
Labels
bug Something isn't working dependencies Pull requests that update a dependency file lang

Comments

@ellttBen
Copy link

ellttBen commented May 7, 2024

In the latest version, anchor_lang is incompatible with solana-program 1.16.x due to

.ok_or(ProgramError::ArithmeticOverflow)?;
. The ArithmeticOverflow variant was added in 1.17.x. The dependency should therefore be bumped to 1.17 to avoid these kinds of issues.

@ellttBen ellttBen changed the title Latest anchor version is incompatible with 1.16 Latest anchor version is incompatible with solana 1.16.x May 7, 2024
@acheroncrypto acheroncrypto added bug Something isn't working lang dependencies Pull requests that update a dependency file labels May 7, 2024
@acheroncrypto
Copy link
Collaborator

Yes, unfortunately I realized this after making the release, but it shouldn't be a big deal since most projects are going to need the 1.18 version anyway due to other dependency compatibility issues.

Thanks for bringing this up, I'll bump it before the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file lang
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants