coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

Bump minimum Solana crate versions to `1.17.3` #2975

Closed acheroncrypto closed 1 month ago

acheroncrypto commented 1 month ago

Problem

The latest version (0.30.0) is using ProgramError::ArithmeticOverflow which was added in https://github.com/solana-labs/solana/pull/33767 and does not exist before solana-program 1.17.3. However, we still support 1.16 in our version requirements:

https://github.com/coral-xyz/anchor/blob/518b73f21959efc86407ab1da03f538ae6c53121/lang/Cargo.toml#L60

We could potentially fix this by introducing a new error variant ourselves or using an existing error variant, but given we're going to need to bump our Solana version anyway, and the fact that 1.17.3 release was published ~8 months ago, it's better to just bump the versions.

Summary of changes

Bump the minimum version of all Solana crates to 1.17.3.

Closes https://github.com/coral-xyz/anchor/issues/2949

vercel[bot] commented 1 month ago

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.